]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/networking/_requests.py
[cleanup] Fix misc bugs (#8968)
[yt-dlp.git] / yt_dlp / networking / _requests.py
index 7b19029bfe15c894e03409eae5eba1174935c95b..6545028c814379c00ea5e75a9495f72575a1ea1d 100644 (file)
@@ -116,7 +116,7 @@ def subn(self, repl, string, *args, **kwargs):
 """
 
 if urllib3_version < (2, 0, 0):
-    with contextlib.suppress():
+    with contextlib.suppress(Exception):
         urllib3.util.IS_SECURETRANSPORT = urllib3.util.ssl_.IS_SECURETRANSPORT = True