| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent fbff1bc commit 07c81d9
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -112,8 +112,11 @@ def html((etype, evalue, etb), context=5): | |||
| 112 | 112 | frames = [] | |
| 113 | 113 | records = inspect.getinnerframes(etb, context) | |
| 114 | 114 | for frame, file, lnum, func, lines, index in records: | |
| 115 | - file = file and os.path.abspath(file) or '?' | ||
| 116 | - link = '<a href="file://%s">%s</a>' % (file, pydoc.html.escape(file)) | ||
| 115 | + if file: | ||
| 116 | + file = os.path.abspath(file) | ||
| 117 | + link = '<a href="file://%s">%s</a>' % (file, pydoc.html.escape(file)) | ||
| 118 | + else: | ||
| 119 | + file = link = '?' | ||
| 117 | 120 | args, varargs, varkw, locals = inspect.getargvalues(frame) | |
| 118 | 121 | call = '' | |
| 119 | 122 | if func != '?': | |
| Back | FazBrowse Home | New Git URL |
0 commit comments