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 2025-04-07 18:51:13 +00:00
parent 20920e844f
commit ec14c3944e

View file

@ -15,7 +15,7 @@ try:
raise Exception() raise Exception()
HAVE_ARGON2 = True HAVE_ARGON2 = True
from argon2 import __version__ as argon2ver from argon2 import exceptions as argon2ex
except: except:
HAVE_ARGON2 = False HAVE_ARGON2 = False