Fixing a lint issue. Invalid syntax.

This commit is contained in:
Gareth J. Greenaway 2018-02-19 22:28:47 -08:00
parent 5e15c28dfa
commit e018e2b9cd
No known key found for this signature in database
GPG Key ID: 10B62F8A7CAD7A41

View File

@ -1092,7 +1092,7 @@ def skip_job(name, current_time, **kwargs):
# Validate date string
try:
datetime.datetime.strptime(current_time,
'%Y-%m-%dT%H:%M:%S'))
'%Y-%m-%dT%H:%M:%S')
except (TypeError, ValueError):
log.error('Date string could not be parsed: %s, %s',
current_time, time_fmt)