Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-01-14 01:43:43 +0300
committerGeorg Brandl <georg@python.org>2010-01-14 01:43:43 +0300
commit177e0d19eebad8fc05befdc8e4c22f69dad827e6 (patch)
tree4f580d020d0b3d3d9a58bca1281486a081d847d9 /sphinx/errors.py
parentcc35b402d9f8ba34c9fe667a66fbaf69340dd770 (diff)
Move getting module source to util.
Diffstat (limited to 'sphinx/errors.py')
-rw-r--r--sphinx/errors.py8
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