fix youtube-dl exception handling

This commit is contained in:
Noah Levitt 2015-07-22 00:53:39 +00:00
parent 83a8e7cbe5
commit f00571f7bd

View File

@ -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