1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

getmedia: in some cases after_case is None

fixed: #974
This commit is contained in:
Johan Andersson 2018-09-24 00:27:24 +02:00
parent e292e39a59
commit 559e950e68

View File

@ -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"])