##// END OF EJS Templates
BUGFIX: check for None moved earlier....
Hoyt Koepke -
Show More
@@ -1026,10 +1026,11 b' class VerboseTB(TBTools):'
1026 head = self.prepare_header(etype, self.long_header)
1026 head = self.prepare_header(etype, self.long_header)
1027 records = self.get_records(etb, number_of_lines_of_context, tb_offset)
1027 records = self.get_records(etb, number_of_lines_of_context, tb_offset)
1028
1028
1029 frames = self.format_records(records)
1030 if records is None:
1029 if records is None:
1031 return ""
1030 return ""
1032
1031
1032 frames = self.format_records(records)
1033
1033 formatted_exception = self.format_exception(etype, evalue)
1034 formatted_exception = self.format_exception(etype, evalue)
1034 if records:
1035 if records:
1035 filepath, lnum = records[-1][1:3]
1036 filepath, lnum = records[-1][1:3]
General Comments 0
You need to be logged in to leave comments. Login now