diff --git a/asyncssh/crypto/__init__.py b/asyncssh/crypto/__init__.py index ef6c8e5..5d145da 100644 --- a/asyncssh/crypto/__init__.py +++ b/asyncssh/crypto/__init__.py @@ -57,5 +57,5 @@ try: from .x509 import X509Certificate, X509Name, X509NamePattern from .x509 import generate_x509_certificate, import_x509_certificate -except ImportError: # pragma: no cover +except (ImportError, AttributeError): # pragma: no cover pass