mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-24 08:39:59 -05:00
fix another dumb little bug in handling exceptions from youtube_dl
This commit is contained in:
parent
85a863b1e3
commit
5d5151584c
@ -26,7 +26,7 @@ class BrozzlerWorker:
|
||||
def _youtube_dl(self, site):
|
||||
ydl_opts = {
|
||||
"outtmpl": "/dev/null",
|
||||
"verbose": True,
|
||||
"verbose": False,
|
||||
"retries": 1,
|
||||
"logger": logging.getLogger("youtube_dl"),
|
||||
"nocheckcertificate": True,
|
||||
@ -102,7 +102,7 @@ class BrozzlerWorker:
|
||||
payload=info_json.encode("utf-8"),
|
||||
extra_headers=site.extra_headers)
|
||||
except BaseException as e:
|
||||
if hasattr(e, exc_info) and youtube_dl.utils.UnsupportedError in e.exc_info:
|
||||
if hasattr(e, "exc_info") and youtube_dl.utils.UnsupportedError in e.exc_info:
|
||||
pass
|
||||
else:
|
||||
raise
|
||||
|
Loading…
x
Reference in New Issue
Block a user