Show More
@@ -1017,8 +1017,12 b' class VerboseTB(TBTools):' | |||||
1017 | max_len = 0 |
|
1017 | max_len = 0 | |
1018 | tbs = [] |
|
1018 | tbs = [] | |
1019 | while cf is not None: |
|
1019 | while cf is not None: | |
1020 | source_file = inspect.getsourcefile(etb.tb_frame) |
|
1020 | try: | |
1021 |
|
|
1021 | source_file = inspect.getsourcefile(etb.tb_frame) | |
|
1022 | lines, first = inspect.getsourcelines(etb.tb_frame) | |||
|
1023 | except OSError: | |||
|
1024 | max_len = float("-inf") | |||
|
1025 | break | |||
1022 | max_len = max(max_len, first + len(lines)) |
|
1026 | max_len = max(max_len, first + len(lines)) | |
1023 | tbs.append(cf) |
|
1027 | tbs.append(cf) | |
1024 | cf = cf.tb_next |
|
1028 | cf = cf.tb_next |
General Comments 0
You need to be logged in to leave comments.
Login now