File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,8 @@ def passwd(passphrase=None, algorithm="argon2"):
6262 try :
6363 import argon2
6464 except ModuleNotFoundError :
65- raise ImportError (
66- "argon2 password hashing requires argon2-cffi package. `pip install 'jupyter-server[password]'` for support."
67- ) from None
65+ msg = "argon2 password hashing requires argon2-cffi package. `pip install 'jupyter-server[password]'` for support."
66+ raise ImportError (msg ) from None
6867
6968 ph = argon2 .PasswordHasher (
7069 memory_cost = 10240 ,
@@ -113,9 +112,8 @@ def passwd_check(hashed_passphrase, passphrase):
113112 try :
114113 import argon2
115114 except ModuleNotFoundError :
116- raise ImportError (
117- "argon2 password hashing requires argon2-cffi package. `pip install 'jupyter-server[password]'` for support."
118- ) from None
115+ msg = "argon2 password hashing requires argon2-cffi package. `pip install 'jupyter-server[password]'` for support."
116+ raise ImportError (msg ) from None
119117 import argon2
120118 import argon2 .exceptions
121119
You can’t perform that action at this time.
0 commit comments