mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix flake8 violation
This commit is contained in:
parent
2c1ac5243c
commit
8b090c6372
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user