#597: fix list of exceptions to catch.

This commit is contained in:
Georg Brandl
2011-01-15 10:06:40 +01:00
parent 130c6bd0b2
commit e5a9838b6e

View File

@@ -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)