mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #23031 from jfindlay/exception
convert exception e.message to just e
This commit is contained in:
commit
bfd9158a83
@ -87,9 +87,9 @@ def commit():
|
||||
conn.cu.commit(confirm=True)
|
||||
ret['out'] = True
|
||||
ret['message'] = 'Commit Successful.'
|
||||
except Exception as e:
|
||||
except Exception as exception:
|
||||
ret['out'] = False
|
||||
ret['message'] = 'Pre-commit check succeeded but actual commit failed with "{0}"'.format(e.message)
|
||||
ret['message'] = 'Pre-commit check succeeded but actual commit failed with "{0}"'.format(exception)
|
||||
else:
|
||||
ret['out'] = False
|
||||
ret['message'] = 'Pre-commit check failed.'
|
||||
|
Loading…
Reference in New Issue
Block a user