Skip to content

Commit

Permalink
Fix Fix authorizer.get("type") call.
Browse files Browse the repository at this point in the history
Fix authorizer.get("type") call when type hasn't been specified.
  • Loading branch information
M0dM committed Jun 20, 2018
1 parent 456d1d7 commit 6248de6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zappa/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6248de6

Please sign in to comment.