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:
parent
6b186291dd
commit
8fcd201ddc
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user