aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/networking/_requests.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/networking/_requests.py')
-rw-r--r--yt_dlp/networking/_requests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/networking/_requests.py b/yt_dlp/networking/_requests.py
index 7b19029bf..6545028c8 100644
--- a/yt_dlp/networking/_requests.py
+++ b/yt_dlp/networking/_requests.py
@@ -116,7 +116,7 @@ See: https://github.com/urllib3/urllib3/issues/517
"""
if urllib3_version < (2, 0, 0):
- with contextlib.suppress():
+ with contextlib.suppress(Exception):
urllib3.util.IS_SECURETRANSPORT = urllib3.util.ssl_.IS_SECURETRANSPORT = True