From ec14c3944ea2f01fb9c6e207c5853ba5214d1884 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 7 Apr 2025 18:51:13 +0000 Subject: [PATCH] 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. --- copyparty/pwhash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/pwhash.py b/copyparty/pwhash.py index c032f6bd..ebbd78f3 100644 --- a/copyparty/pwhash.py +++ b/copyparty/pwhash.py @@ -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