Skip to content

Commit

Permalink
šŸ› add exception handler for load_and_auth on checking validity of Sesā€¦
Browse files Browse the repository at this point in the history
ā€¦sion
  • Loading branch information
Shion1305 committed Jan 26, 2024
1 parent 40018b7 commit a7eea77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ghunt/modules/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ async def check_and_login(as_client: httpx.AsyncClient, clean: bool=False) -> No
except GHuntInvalidSession as e:
print(f"[-] {e}\n")
is_session_valid = False
except BaseException as e:
print(f"[-] Unexpected error : {e}\n")
is_session_valid = False

if not is_session_valid:
oauth_token, master_token = auth.auth_dialog()
Expand Down

0 comments on commit a7eea77

Please sign in to comment.