Fix a py3 error with exception formatting

The .message attribute of exceptions doesn't exist in py3.

Change-Id: I6ea60156d24649448be316244ddd81f9f3d2ebae
This commit is contained in:
James E. Blair 2019-08-24 15:46:48 +02:00
parent 9105cbb232
commit 4d4bed3711
1 changed files with 1 additions and 1 deletions

View File

@ -575,7 +575,7 @@ class App(object):
try:
self._syncOneChangeFromQuery(query)
except Exception as e:
return self.error(e.message)
return self.error(str(e))
with self.db.getSession() as session:
try:
changes = session.getChanges(query)