Skip to content
Snippets Groups Projects
Commit 297f061d authored by Robin Carlsson's avatar Robin Carlsson
Browse files

cleanup

parent 7fa4db30
No related branches found
No related tags found
No related merge requests found
......@@ -356,7 +356,7 @@ with open(sys.argv[1], encoding="utf-8") as pages_to_test:
print(f"Error Message: {err}")
# sue me lmao
if "click intercepted" in str(err):
handle_interception(err, b)
handle_interception(err.msg, b)
except Exception as err:
print(err)
# search bar and buttons
......@@ -371,7 +371,7 @@ with open(sys.argv[1], encoding="utf-8") as pages_to_test:
try:
print(f"Error Message: {err}")
if "click intercepted" in str(err):
handle_interception(err, b)
handle_interception(err.msg, b)
except Exception as err:
print(err)
if none_worked:
......@@ -386,7 +386,7 @@ with open(sys.argv[1], encoding="utf-8") as pages_to_test:
try:
print(f"Error Message: {err}")
if "click intercepted" in str(err):
handle_interception(err, b)
handle_interception(err.msg, b)
except Exception as err:
print(err)
# buttons but no search bar
......@@ -403,7 +403,7 @@ with open(sys.argv[1], encoding="utf-8") as pages_to_test:
try:
print(f"Error Message: {err}")
if "click intercepted" in str(err):
handle_interception(err, b)
handle_interception(err.msg, b)
except Exception as err:
print(err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment