From 177e0d19eebad8fc05befdc8e4c22f69dad827e6 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 13 Jan 2010 23:43:43 +0100 Subject: Move getting module source to util. --- sphinx/errors.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sphinx/errors.py') 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 -- cgit v1.2.1