Code Review
/
yardstick.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
(from parent 1:
b583d4b
)
Merge "utils: catch SyntaxError during import"
author
Ross Brattain
<ross.b.brattain@intel.com>
Tue, 29 Aug 2017 06:44:36 +0000
(06:44 +0000)
committer
Gerrit Code Review
<gerrit@opnfv.org>
Tue, 29 Aug 2017 06:44:36 +0000
(06:44 +0000)
yardstick/common/utils.py
patch
|
blob
|
history
diff --git
a/yardstick/common/utils.py
b/yardstick/common/utils.py
index
1d7ea07
..
68c9ed6
100644
(file)
--- a/
yardstick/common/utils.py
+++ b/
yardstick/common/utils.py
@@
-90,7
+90,7
@@
def import_modules_from_package(package):
for module_name in missing_modules:
try:
sys.modules[module_name] = importutils.import_module(module_name)
- except
ImportError
:
+ except
(ImportError, SyntaxError)
:
logger.exception("unable to import %s", module_name)