Skip to content

Commit

Permalink
Fix exception bugs in the analyze memory function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Teingi committed Nov 25, 2024
1 parent 1db71c8 commit 21645ee
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions handler/analyzer/analyze_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,10 +556,13 @@ def __parse_memory_label(self, file_full_path):
memory_begin_list = memory_begin_str.split('\n')
memory_print_line_list = []
for row in memory_begin_list:
print_begin_line = row.split(':')[0]
if print_begin_line:
print_begin_line = int(print_begin_line)
memory_print_line_list.append(print_begin_line)
try:
print_begin_line = row.split(':')[0]
if print_begin_line:
print_begin_line = int(print_begin_line)
memory_print_line_list.append(print_begin_line)
except ValueError:
continue
return sorted(memory_print_line_list)

def __convert_string_bytes_2_int_bytes(self, string_bytes):
Expand Down

0 comments on commit 21645ee

Please sign in to comment.