From cc07f0b22f4c0576bb67080c0a56a0defd3f9ded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Sat, 3 Nov 2018 14:53:54 +0000 Subject: [PATCH] Fix another python3-specific flake. --- isso/utils/hash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isso/utils/hash.py b/isso/utils/hash.py index 4c23217..8e85a54 100644 --- a/isso/utils/hash.py +++ b/isso/utils/hash.py @@ -15,7 +15,7 @@ except ImportError: def pbkdf2(val, salt, iterations, dklen, func): return _pbkdf2(val, salt, iterations, dklen, ("hmac-" + func).encode("utf-8")) - except ImportError as ex: + except ImportError: raise ImportError("No PBKDF2 implementation found. Either upgrade " "to `werkzeug` 0.9 or install `passlib`.")