Fix: Api-Gateway ApiKeyAlreadyExists headers change. (#3162)

* Fix: Api-Gateway ApiKeyAlreadyExists headers change.

* Added test for non decorator

* Fixed cli errors

* Fix:fixed build errors

* Fix: assert only in case of non server mode

Co-authored-by: usmankb <usman@krazybee.com>
This commit is contained in:
usmangani1 2020-09-01 12:55:59 +05:30 committed by GitHub
commit bcf61d0b09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 1 deletions

View file

@ -449,7 +449,7 @@ class APIGatewayResponse(BaseResponse):
except ApiKeyAlreadyExists as error:
return (
error.code,
self.headers,
{},
'{{"message":"{0}","code":"{1}"}}'.format(
error.message, error.error_type
),