mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 23:56:34 -04:00
fix youtube-dl exception handling
This commit is contained in:
parent
83a8e7cbe5
commit
f00571f7bd
@ -102,7 +102,7 @@ class BrozzlerWorker:
|
||||
payload=info_json.encode("utf-8"),
|
||||
extra_headers=site.extra_headers)
|
||||
except BaseException as e:
|
||||
if 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