mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #34356 from rallytime/python3-runner-tests
Fix invalid syntax error in system.py module exception handling
This commit is contained in:
commit
5d4759acec
@ -193,7 +193,7 @@ def _try_parse_datetime(time_str, fmts):
|
||||
try:
|
||||
result = datetime.strptime(time_str, fmt)
|
||||
break
|
||||
except ValueError, e:
|
||||
except ValueError:
|
||||
pass
|
||||
return result
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user