Don't gobble up the exceptions.BadRequest exception

This commit is contained in:
2016-07-26 10:57:55 +02:00
parent 011bfa9809
commit 654a7d4823

View File

@@ -118,9 +118,6 @@ class Api(object):
data=json.dumps(body),
headers=http_headers)
except exceptions.BadRequest as error:
return {"error": json.loads(error.content)}
# Handle unauthorized token
except exceptions.UnauthorizedAccess as error:
raise error