mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#597: fix list of exceptions to catch.
This commit is contained in:
@@ -86,7 +86,7 @@ class InheritanceGraph(object):
|
||||
"""
|
||||
try:
|
||||
path, base = class_sig_re.match(name).groups()
|
||||
except ValueError:
|
||||
except (AttributeError, ValueError):
|
||||
raise InheritanceException('Invalid class or module %r specified '
|
||||
'for inheritance diagram' % name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user