X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=config%2Fgr_python.m4;h=7aef1662e0a6fb787eb5ed5f7b1f317498e22413;hb=1fa9a8ea31115b878bff48d2259fc72d1a37b52c;hp=43ccfc01575f5e0c53cab03a12f603e92c10c64b;hpb=212f623428ddfcd17021f4b431750305024626a1;p=debian%2Fgnuradio diff --git a/config/gr_python.m4 b/config/gr_python.m4 index 43ccfc01..7aef1662 100644 --- a/config/gr_python.m4 +++ b/config/gr_python.m4 @@ -153,14 +153,16 @@ AC_DEFUN([PYTHON_CHECK_MODULE],[ try: import $1 assert $5 -except: exit(1)' +except ImportError, AssertionError: exit(1) +except: pass' dnl ######################################## dnl # import checking only dnl ######################################## else python_cmd=' try: import $1 -except: exit(1)' +except ImportError: exit(1) +except: pass' fi if ! $PYTHON -c "$python_cmd" 2> /dev/null; then AC_MSG_RESULT([no])