fix: replace bare except with Exception in oauth.py (#22420)

* fix: replace bare except with except Exception in main.py

* fix: replace bare except with Exception in oauth.py

In Python 3, bare 'except:' is discouraged as it catches all
SystemExit and KeyboardInterrupt exceptions. Changed to 'except Exception:'
to only catch actual exceptions.
This commit is contained in:
Ethan T.
2026-03-08 16:36:53 -05:00
committed by GitHub
parent 124ad948fe
commit 61bbb99d9e
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -620,7 +620,7 @@ class OAuthClientManager:
payload = json.loads(response_text)
error = payload.get("error")
error_description = payload.get("error_description", "")
except:
except Exception:
pass
else:
error_description = response_text