fix DeprecationWarning: Accessing argon2.__version__ is deprecated and will be removed in a future release. Use importlib.metadata directly to query for structlog's packaging metadata.

This commit is contained in:
ed committed 2025-04-07 18:51:13 +00:00
1 parent 20920e844f
commit ec14c3944e
1 file changed
+1 -1
+1 -1
View File
@@ -15,7 +15,7 @@ try:
raise Exception()
HAVE_ARGON2 = True
from argon2 import __version__ as argon2ver
from argon2 import exceptions as argon2ex
except:
HAVE_ARGON2 = False