Fix bad formatting of BadRequest exception message

fixes #470
This commit is contained in:
Noam Meltzer 2017-01-07 23:09:06 +02:00
parent bd96771a7a
commit 1bb5dd224b

View file

@ -173,7 +173,7 @@ class Request(object):
if resp.status in (401, 403):
raise Unauthorized()
elif resp.status == 400:
raise BadRequest(repr(message))
raise BadRequest(message)
elif resp.status == 404:
raise InvalidToken()
elif resp.status == 502: