Skip to content

Commit a7eea77

Browse files
committed
šŸ› add exception handler for load_and_auth on checking validity of Session
1 parent 40018b7 commit a7eea77

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ā€Žghunt/modules/login.pyā€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ async def check_and_login(as_client: httpx.AsyncClient, clean: bool=False) -> No
3333
except GHuntInvalidSession as e:
3434
print(f"[-] {e}\n")
3535
is_session_valid = False
36+
except BaseException as e:
37+
print(f"[-] Unexpected error : {e}\n")
38+
is_session_valid = False
3639

3740
if not is_session_valid:
3841
oauth_token, master_token = auth.auth_dialog()

0 commit comments

Comments
Ā (0)