From 6248de6b30f86e3a935aa2105190bfecedd04ac0 Mon Sep 17 00:00:00 2001 From: Benoit Brayer Date: Wed, 20 Jun 2018 12:24:51 +0200 Subject: [PATCH] Fix Fix authorizer.get("type") call. Fix authorizer.get("type") call when type hasn't been specified. --- zappa/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zappa/core.py b/zappa/core.py index f8537c1ad..fad08257c 100644 --- a/zappa/core.py +++ b/zappa/core.py @@ -1857,7 +1857,7 @@ def create_stack_template( self, elif iam_authorization: auth_type = "AWS_IAM" elif authorizer: - if authorizer.get("type").upper() != 'REQUEST': + if not authorizer.get("type") or authorizer.get("type").upper() != 'REQUEST': auth_type = authorizer.get("type", "CUSTOM") else: auth_type = "CUSTOM"