Skip to content
Snippets Groups Projects
Commit e77c892f authored by Mike Bayer's avatar Mike Bayer
Browse files

- added an IOError catch for source file not found in RichTraceback

exception reporter [ticket:51]
parent a8c2999b
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,8 @@ Paul Colomiets
- fixed expressions and page tag arguments and with embedded
newlines in CRLF templates, follow up to [ticket:16], thanks
Eric Woroshow
- added an IOError catch for source file not found in RichTraceback
exception reporter [ticket:51]
0.1.8
- variable names declared in render methods by internal
......
......@@ -138,7 +138,10 @@ class RichTraceback(object):
self.lineno = new_trcback[l][5]
break
else:
self.source = file(new_trcback[-1][0]).read()
try:
self.source = file(new_trcback[-1][0]).read()
except IOError:
self.source = ''
self.lineno = new_trcback[-1][1]
return (type, value, new_trcback)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment