mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-01-01 06:21:09 +01:00
[GoogleDriveFolderIE] add bare raise in the except block
This commit is contained in:
parent
8623ada293
commit
28ed64d87a
1 changed files with 1 additions and 0 deletions
|
@ -362,6 +362,7 @@ class GoogleDriveFolderIE(InfoExtractor):
|
||||||
except ExtractorError as e:
|
except ExtractorError as e:
|
||||||
if isinstance(e.cause, HTTPError) and e.cause.status == 404:
|
if isinstance(e.cause, HTTPError) and e.cause.status == 404:
|
||||||
self.raise_no_formats(e.cause.msg)
|
self.raise_no_formats(e.cause.msg)
|
||||||
|
raise
|
||||||
if urllib.parse.urlparse(urlh.url).netloc == 'accounts.google.com':
|
if urllib.parse.urlparse(urlh.url).netloc == 'accounts.google.com':
|
||||||
self.raise_login_required('This video is only available for registered users')
|
self.raise_login_required('This video is only available for registered users')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue