Merge pull request #23031 from jfindlay/exception

convert exception e.message to just e
This commit is contained in:
Nicole Thomas 2015-04-24 12:38:13 -06:00
commit bfd9158a83

View File

@ -87,9 +87,9 @@ def commit():
conn.cu.commit(confirm=True) conn.cu.commit(confirm=True)
ret['out'] = True ret['out'] = True
ret['message'] = 'Commit Successful.' ret['message'] = 'Commit Successful.'
except Exception as e: except Exception as exception:
ret['out'] = False 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: else:
ret['out'] = False ret['out'] = False
ret['message'] = 'Pre-commit check failed.' ret['message'] = 'Pre-commit check failed.'