From 559e950e6897a0badd65b1d6ef75881cd8a4f44a Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Mon, 24 Sep 2018 00:27:24 +0200 Subject: [PATCH] getmedia: in some cases after_case is None fixed: #974 --- lib/svtplay_dl/utils/getmedia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/svtplay_dl/utils/getmedia.py b/lib/svtplay_dl/utils/getmedia.py index 0279c86..556ea90 100644 --- a/lib/svtplay_dl/utils/getmedia.py +++ b/lib/svtplay_dl/utils/getmedia.py @@ -128,7 +128,7 @@ def get_one_media(stream): try: after_date = datetime.fromisoformat(stream.config.get("after_date")) - except (ValueError, TypeError, KeyError): + except (ValueError, TypeError, KeyError, AttributeError): # gotta catch em all.. after_date = None try: pub_date = datetime.fromtimestamp(stream.output["publishing_datetime"])