Add error handling for cases where AIDA64 report is missing some information

This commit is contained in:
Hoang Hong Quan
2024-08-19 17:44:15 +07:00
parent 9915fdc264
commit c67bf4c291

View File

@@ -427,7 +427,10 @@ class AIDA64:
"USB Devices"
]
start_index = html_content.index("</div>") + len("</div>")
try:
start_index = html_content.index("</div>") + len("</div>")
except:
raise Exception("Your AIDA64 report is missing some information. Please revise it according to the provided guidelines")
for title in table_titles:
title_marker = f">{title}<"