diff options
author | Georg Brandl <georg@python.org> | 2010-01-14 01:43:43 +0300 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-01-14 01:43:43 +0300 |
commit | 177e0d19eebad8fc05befdc8e4c22f69dad827e6 (patch) | |
tree | 4f580d020d0b3d3d9a58bca1281486a081d847d9 /sphinx/errors.py | |
parent | cc35b402d9f8ba34c9fe667a66fbaf69340dd770 (diff) |
Move getting module source to util.
Diffstat (limited to 'sphinx/errors.py')
-rw-r--r-- | sphinx/errors.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sphinx/errors.py b/sphinx/errors.py index 684101c68..ca70fe4b2 100644 --- a/sphinx/errors.py +++ b/sphinx/errors.py @@ -46,3 +46,11 @@ class ExtensionError(SphinxError): class ThemeError(SphinxError): category = 'Theme error' + + +class PycodeError(Exception): + def __str__(self): + res = self.args[0] + if len(self.args) > 1: + res += ' (exception was: %r)' % self.args[1] + return res |