Show More
@@ -999,8 +999,12 b' class VerboseTB(TBTools):' | |||||
999 | max_len = 0 |
|
999 | max_len = 0 | |
1000 | tbs = [] |
|
1000 | tbs = [] | |
1001 | while cf is not None: |
|
1001 | while cf is not None: | |
1002 | source_file = inspect.getsourcefile(etb.tb_frame) |
|
1002 | try: | |
1003 |
|
|
1003 | source_file = inspect.getsourcefile(etb.tb_frame) | |
|
1004 | lines, first = inspect.getsourcelines(etb.tb_frame) | |||
|
1005 | except OSError: | |||
|
1006 | max_len = float("-inf") | |||
|
1007 | break | |||
1004 | max_len = max(max_len, first + len(lines)) |
|
1008 | max_len = max(max_len, first + len(lines)) | |
1005 | tbs.append(cf) |
|
1009 | tbs.append(cf) | |
1006 | cf = cf.tb_next |
|
1010 | cf = cf.tb_next |
General Comments 0
You need to be logged in to leave comments.
Login now