We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2614f28 + 8fd9c20 commit 6f7953bCopy full SHA for 6f7953b
serverless/aws/functions/generic.py
@@ -66,7 +66,7 @@ def __init__(
66
self.iamRoleStatementsName = self.iamRoleStatements.role
67
self.iamRoleStatementsInherit = True
68
69
- configured = list(filter(lambda x: x.get("Ref") == "PythonRequirementsLambdaLayer", layers or []))
+ configured = list(filter(lambda x: type(x) is dict and x.get("Ref") == "PythonRequirementsLambdaLayer", layers or []))
70
if (
71
self._service.plugins.get(PythonRequirements)
72
and self._service.plugins.get(PythonRequirements).layer
0 commit comments