diff options
author | Ross Brattain <ross.b.brattain@intel.com> | 2017-08-29 06:44:36 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-08-29 06:44:36 +0000 |
commit | 96b4d985bb8d83751e65a3ad5fa710e9eeddcb9b (patch) | |
tree | 4ec5620e806e44b27becb908dcb1a75e43b961d3 | |
parent | b583d4bfe6bc49e0f3bf4beec6612390a1d4bd24 (diff) | |
parent | d4532555c8c04d0813be51cfa5d3253bd19f31bf (diff) |
Merge "utils: catch SyntaxError during import"
-rw-r--r-- | yardstick/common/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yardstick/common/utils.py b/yardstick/common/utils.py index 1d7ea071c..68c9ed63f 100644 --- 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) |