1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

dash: use exception instead of nothin

This commit is contained in:
Johan Andersson 2018-05-13 14:21:27 +02:00
parent 6b186291dd
commit 8fcd201ddc

View File

@ -186,7 +186,7 @@ def parse_dates(date_str):
try:
dt = datetime.strptime(date_str, pattern)
break
except:
except Exception:
pass
if not dt:
raise ValueError("Can't parse date format: {0}".format(date_str))