From c67bf4c291feacbb2e91fe9674bf461d8c434ef6 Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Mon, 19 Aug 2024 17:44:15 +0700 Subject: [PATCH] Add error handling for cases where AIDA64 report is missing some information --- Scripts/aida64.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Scripts/aida64.py b/Scripts/aida64.py index e5c0288..bc5a30b 100644 --- a/Scripts/aida64.py +++ b/Scripts/aida64.py @@ -427,7 +427,10 @@ class AIDA64: "USB Devices" ] - start_index = html_content.index("") + len("") + try: + start_index = html_content.index("") + len("") + 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}<"