about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2019-11-12 12:47:19 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2019-11-12 15:10:44 +0100
commitc79fb842dd7b93d834952767d4abe7dd8b8a8061 (patch)
treea392717fba9902180ef02baf0691a6d060f4ae97
parent4dc802e3544e669cfea1d6be8a01ca2a2600dfef (diff)
downloadmiasm-c79fb842dd7b93d834952767d4abe7dd8b8a8061.tar.gz
miasm-c79fb842dd7b93d834952767d4abe7dd8b8a8061.zip
Fix z3 import
-rw-r--r--miasm/analysis/depgraph.py2
-rw-r--r--miasm/analysis/dse.py2
-rwxr-xr-xtest/test_all.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/miasm/analysis/depgraph.py b/miasm/analysis/depgraph.py
index 80e94c7f..7113dd51 100644
--- a/miasm/analysis/depgraph.py
+++ b/miasm/analysis/depgraph.py
@@ -15,7 +15,7 @@ from miasm.expression.expression_helper import possible_values
 
 try:
     import z3
-except ImportError:
+except:
     pass
 
 @total_ordering
diff --git a/miasm/analysis/dse.py b/miasm/analysis/dse.py
index 3f31f344..2c2b41f4 100644
--- a/miasm/analysis/dse.py
+++ b/miasm/analysis/dse.py
@@ -52,7 +52,7 @@ from collections import namedtuple
 
 try:
     import z3
-except ImportError:
+except:
     z3 = None
 
 from future.utils import viewitems
diff --git a/test/test_all.py b/test/test_all.py
index 02bddb51..7fb43525 100755
--- a/test/test_all.py
+++ b/test/test_all.py
@@ -923,7 +923,7 @@ By default, all tag are considered." % ", ".join(list(TAGS)), default="")
     # Handle Z3 dependency
     try:
         import z3
-    except ImportError:
+    except:
         print("%(red)s[Z3]%(end)s " % cosmetics.colors + \
             "Z3 and its python binding are necessary for TranslatorZ3.")
         if TAGS["z3"] not in exclude_tags: