From a7eea770557437d533da4b573d816c6eada42296 Mon Sep 17 00:00:00 2001 From: Shion Ichikawa Date: Fri, 26 Jan 2024 23:28:26 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20add=20exception=20handler=20for?= =?UTF-8?q?=20load=5Fand=5Fauth=20on=20checking=20validity=20of=20Session?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ghunt/modules/login.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ghunt/modules/login.py b/ghunt/modules/login.py index c0f930a4..daf851b8 100644 --- a/ghunt/modules/login.py +++ b/ghunt/modules/login.py @@ -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()