allows offpunk to run with older cryptography package

This commit is contained in:
Lionel Dricot 2023-09-05 11:52:30 +02:00
parent be71ba8c75
commit 53b310507f
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ try:
from cryptography.hazmat.backends import default_backend
_HAS_CRYPTOGRAPHY = True
_BACKEND = default_backend()
except ModuleNotFoundError:
except(ModuleNotFoundError,ImportError):
_HAS_CRYPTOGRAPHY = False
if not os.path.exists(_CACHE_PATH):