Don't gobble up the exceptions.BadRequest exception
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user