aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsepro <sepro@sepr0.com>2024-11-10 00:53:49 +0100
committerGitHub <noreply@github.com>2024-11-10 00:53:49 +0100
commitb83ca24eb72e1e558b0185bd73975586c0bc0546 (patch)
tree3d029d44b2f3d1205d6b82c3884ac9c0dc798d33
parent240a7d43c8a67ffb86d44dc276805aa43c358dcc (diff)
[core] Catch broken Cryptodome installations (#11486)
Authored by: seproDev
-rw-r--r--yt_dlp/dependencies/Cryptodome.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/dependencies/Cryptodome.py b/yt_dlp/dependencies/Cryptodome.py
index 2cfa4c952..0e4404d49 100644
--- a/yt_dlp/dependencies/Cryptodome.py
+++ b/yt_dlp/dependencies/Cryptodome.py
@@ -24,7 +24,7 @@ try:
from Crypto.Cipher import AES, PKCS1_OAEP, Blowfish, PKCS1_v1_5 # noqa: F401
from Crypto.Hash import CMAC, SHA1 # noqa: F401
from Crypto.PublicKey import RSA # noqa: F401
-except ImportError:
+except (ImportError, OSError):
__version__ = f'broken {__version__}'.strip()