fix another dumb little bug in handling exceptions from youtube_dl

This commit is contained in:
Noah Levitt 2015-07-23 00:41:26 +00:00
parent 85a863b1e3
commit 5d5151584c

View File

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