mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-06-24 23:00:41 -04:00
fix youtube-dl exception handling
This commit is contained in:
parent
83a8e7cbe5
commit
f00571f7bd
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ class BrozzlerWorker:
|
||||||
payload=info_json.encode("utf-8"),
|
payload=info_json.encode("utf-8"),
|
||||||
extra_headers=site.extra_headers)
|
extra_headers=site.extra_headers)
|
||||||
except BaseException as e:
|
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
|
pass
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue