Replaced all occurences of e.message with str(e)

Signed-off-by: Schnuffle  <schnuffle@github.com>
This commit is contained in:
Schnuffle 2018-09-27 13:38:50 +02:00
parent 2c695fd1aa
commit dc5db01ff2
18 changed files with 19 additions and 19 deletions

View file

@ -341,7 +341,7 @@ class E2eKeysHandler(object):
def _exception_to_failure(e):
if isinstance(e, CodeMessageException):
return {
"status": e.code, "message": e.message,
"status": e.code, "message": str(e),
}
if isinstance(e, NotRetryingDestination):

View file

@ -278,7 +278,7 @@ class BaseProfileHandler(BaseHandler):
except Exception as e:
logger.warn(
"Failed to update join event for room %s - %s",
room_id, str(e.message)
room_id, str(e)
)