Fix flake8 violation

This commit is contained in:
Takeshi KOMIYA 2017-11-11 17:00:50 +09:00
parent 2c1ac5243c
commit 8b090c6372

View File

@ -129,7 +129,7 @@ def import_module(modname, warningiserror=False):
warnings.filterwarnings("ignore", category=ImportWarning)
with logging.skip_warningiserror(not warningiserror):
return __import__(modname)
except BaseException as exc:
except BaseException:
# Importing modules may cause any side effects, including
# SystemExit, so we need to catch all errors.
raise ImportError(traceback.format_exc())