1. Luke Plant
  2. sphinx

Commits

Georg Brandl  committed 5351a20

#597: fix list of exceptions to catch.

  • Participants
  • Parent commits 6fd0bad
  • Branches default

Comments (0)

Files changed (1)

File sphinx/ext/inheritance_diagram.py

View file
  • Ignore whitespace
         """
         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)