diff options
Diffstat (limited to 'logilab/common/sphinxutils.py')
-rw-r--r-- | logilab/common/sphinxutils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/logilab/common/sphinxutils.py b/logilab/common/sphinxutils.py index 350188d..724ea39 100644 --- a/logilab/common/sphinxutils.py +++ b/logilab/common/sphinxutils.py @@ -29,7 +29,7 @@ Typical usage: >>> mgen.generate('api_logilab_common.rst', exclude_dirs=('test',)) """ -import os, sys +import sys import os.path as osp import inspect @@ -113,7 +113,7 @@ class ModuleGenerator: continue try: module = load_module_from_file(filepath) - except: # module might be broken or magic + except Exception: # module might be broken or magic dotted_path = modpath_from_file(filepath) module = type(".".join(dotted_path), (), {}) # mock it yield module |