From 81efee55bd077af3eeb9b931598e3c7f0e1c8d5d Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Sat, 22 Feb 2025 16:22:12 +0000 Subject: [PATCH] Catch VerifyException --- jupyterhub_authenticator/password.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyterhub_authenticator/password.py b/jupyterhub_authenticator/password.py index 556c7e8..6581687 100644 --- a/jupyterhub_authenticator/password.py +++ b/jupyterhub_authenticator/password.py @@ -27,6 +27,6 @@ def checkpw(password, encrypted_password): try: return argon2.PasswordHasher().verify(encrypted_password, password) - except argon2.exceptions.InvalidHashError, argon2.exceptions.VerifyMismatchError: + except (argon2.exceptions.InvalidHashError, argon2.exceptions.VerifyMismatchError): # Rewrite exception to maintain API compatibility. return False -- GitLab