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