mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-09-19 12:14:49 -04:00
catch yt_dlp.utils.UnsupportedError
This commit is contained in:
parent
43a97f596c
commit
52235d9668
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ def _try_youtube_dl(worker, ydl, site, page):
|
|||
except brozzler.ShutdownRequested as e:
|
||||
raise
|
||||
except Exception as e:
|
||||
if hasattr(e, "exc_info") and e.exc_info[0] == youtube_dl.utils.UnsupportedError:
|
||||
if hasattr(e, "exc_info") and e.exc_info[0] == yt_dlp.utils.UnsupportedError:
|
||||
return None
|
||||
elif (hasattr(e, "exc_info")
|
||||
and e.exc_info[0] == urllib.error.HTTPError
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue