[svn r59871] yet-another-except when trying to get source
--HG-- branch : trunk
This commit is contained in:
parent
2ad9d8a3c6
commit
c609974f04
|
@ -91,7 +91,10 @@ class FormattedExcinfo(object):
|
|||
except KeyboardInterrupt:
|
||||
raise
|
||||
except:
|
||||
try:
|
||||
s = str(source[-1])
|
||||
except:
|
||||
return 0
|
||||
return 4 + (len(s) - len(s.lstrip()))
|
||||
|
||||
def _getentrysource(self, entry):
|
||||
|
|
Loading…
Reference in New Issue