diff --git a/errorreporting.py b/errorreporting.py index f61f55a..e5db118 100644 --- a/errorreporting.py +++ b/errorreporting.py @@ -53,8 +53,10 @@ def extract_tb(tb, limit=None): selfstr = " " traceback.linecache.checkcache(filename) line = traceback.linecache.getline(filename, lineno, f.f_globals) - if line: line = line.strip() - else: line = None + if line: + line = line.strip() + else: + line = None list.append((filename, lineno, name, line, selfstr)) tb = tb.tb_next n = n + 1