[GoogleDriveFolderIE] add bare raise in the except block

This commit is contained in:
grqx_wsl 2024-08-17 23:49:56 +12:00
parent 8623ada293
commit 28ed64d87a

View file

@ -362,6 +362,7 @@ class GoogleDriveFolderIE(InfoExtractor):
except ExtractorError as e:
if isinstance(e.cause, HTTPError) and e.cause.status == 404:
self.raise_no_formats(e.cause.msg)
raise
if urllib.parse.urlparse(urlh.url).netloc == 'accounts.google.com':
self.raise_login_required('This video is only available for registered users')