mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Fix invalid syntax error in system.py module exception handling
Found when running runner tests for Python 3
This commit is contained in:
parent
4feea285d4
commit
4c481054eb
@ -193,7 +193,7 @@ def _try_parse_datetime(time_str, fmts):
|
|||||||
try:
|
try:
|
||||||
result = datetime.strptime(time_str, fmt)
|
result = datetime.strptime(time_str, fmt)
|
||||||
break
|
break
|
||||||
except ValueError, e:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user