[svn r59871] yet-another-except when trying to get source

--HG--
branch : trunk
This commit is contained in:
fijal 2008-11-11 20:11:14 +01:00
parent 2ad9d8a3c6
commit c609974f04
1 changed files with 4 additions and 1 deletions

View File

@ -91,7 +91,10 @@ class FormattedExcinfo(object):
except KeyboardInterrupt: except KeyboardInterrupt:
raise raise
except: except:
s = str(source[-1]) try:
s = str(source[-1])
except:
return 0
return 4 + (len(s) - len(s.lstrip())) return 4 + (len(s) - len(s.lstrip()))
def _getentrysource(self, entry): def _getentrysource(self, entry):