[svn r58888] Catch all possible find_source errors
--HG-- branch : trunk
This commit is contained in:
parent
8650c801a2
commit
4e3d14162d
|
@ -58,7 +58,9 @@ class TracebackEntry(object):
|
|||
if source is None:
|
||||
try:
|
||||
sourcelines, lineno = py.std.inspect.findsource(self.frame.code.raw)
|
||||
except IOError:
|
||||
except (KeyboardInterrupt, SystemExit):
|
||||
raise
|
||||
except:
|
||||
return None
|
||||
source = py.code.Source()
|
||||
source.lines = map(str.rstrip, sourcelines)
|
||||
|
|
Loading…
Reference in New Issue