diff options
Diffstat (limited to 'yt_dlp/networking/exceptions.py')
-rw-r--r-- | yt_dlp/networking/exceptions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/networking/exceptions.py b/yt_dlp/networking/exceptions.py index 10afc9ccb..465b18ba9 100644 --- a/yt_dlp/networking/exceptions.py +++ b/yt_dlp/networking/exceptions.py @@ -115,7 +115,7 @@ class _CompatHTTPError(urllib.error.HTTPError, HTTPError): hdrs=http_error.response.headers, fp=http_error.response ) - self._closer.file = None # Disable auto close + self._closer.close_called = True # Disable auto close self._http_error = http_error HTTPError.__init__(self, http_error.response, redirect_loop=http_error.redirect_loop) |