diff options
author | Georg Brandl <georg@python.org> | 2009-06-16 19:31:44 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-06-16 19:31:44 +0200 |
commit | 3e820a6f477ce31a76491e9d0a32c8817afba4e4 (patch) | |
tree | 1a51be1dbc95db63f9ee641a7de133da9330c32f /sphinx/ext/autodoc.py | |
parent | 4330626713454460408ebbc7e6e7d49088a3a445 (diff) | |
download | sphinx-git-3e820a6f477ce31a76491e9d0a32c8817afba4e4.tar.gz |
Import can raise SyntaxError as well, e.g. for invalid encodings.
Diffstat (limited to 'sphinx/ext/autodoc.py')
-rw-r--r-- | sphinx/ext/autodoc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/ext/autodoc.py b/sphinx/ext/autodoc.py index 110314242..3d3782b83 100644 --- a/sphinx/ext/autodoc.py +++ b/sphinx/ext/autodoc.py @@ -330,7 +330,7 @@ class Documenter(object): obj = self.get_attr(obj, part) self.object = obj return True - except (ImportError, AttributeError), err: + except (SyntaxError, ImportError, AttributeError), err: self.directive.warn( 'autodoc can\'t import/find %s %r, it reported error: ' '"%s", please check your spelling and sys.path' % |