mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
argon2: make isort happy
This commit is contained in:
parent
db811245e8
commit
7b49bab471
2 changed files with 2 additions and 2 deletions
|
@ -136,7 +136,7 @@ class Auth(auth.BaseAuth):
|
||||||
if self._encryption == "argon2" or self._encryption == "autodetect":
|
if self._encryption == "argon2" or self._encryption == "autodetect":
|
||||||
try:
|
try:
|
||||||
import argon2
|
import argon2
|
||||||
from passlib.hash import argon2 # noqa: F811 (required to detect missing argon2-cffi)
|
from passlib.hash import argon2 # noqa: F811
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
if (self._encryption == "autodetect") and (self._htpasswd_argon2_use == 0):
|
if (self._encryption == "autodetect") and (self._htpasswd_argon2_use == 0):
|
||||||
logger.warning("auth htpasswd encryption is 'radicale.auth.htpasswd_encryption.%s' which can require argon2 module, but currently no entries found", self._encryption)
|
logger.warning("auth htpasswd encryption is 'radicale.auth.htpasswd_encryption.%s' which can require argon2 module, but currently no entries found", self._encryption)
|
||||||
|
|
|
@ -52,7 +52,7 @@ class TestBaseAuthRequests(BaseTest):
|
||||||
# test for available argon2 module
|
# test for available argon2 module
|
||||||
try:
|
try:
|
||||||
import argon2
|
import argon2
|
||||||
from passlib.hash import argon2 # noqa: F811 (required to detect missing argon2-cffi)
|
from passlib.hash import argon2 # noqa: F811
|
||||||
except ImportError:
|
except ImportError:
|
||||||
has_argon2 = 0
|
has_argon2 = 0
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue