1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +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: try:
dt = datetime.strptime(date_str, pattern) dt = datetime.strptime(date_str, pattern)
break break
except: except Exception:
pass pass
if not dt: if not dt:
raise ValueError("Can't parse date format: {0}".format(date_str)) raise ValueError("Can't parse date format: {0}".format(date_str))