fix_asm.py fix

This commit is contained in:
Ethan Roseman 2020-05-07 00:23:38 -04:00
parent 5f32282e6f
commit aec4570d19

View File

@ -43,6 +43,10 @@ for root, dirs, files in os.walk(asm_dir):
dumb_split = file.split("_")
if len(dumb_split) > 2:
file_num = dumb_split[1]
try:
test = int(file_num, 16)
except ValueError:
file_num = ""
else:
file_num = ""
with open(os.path.join(root, file)) as f: