Skip to content

Commit 8fd9c20

Browse files
committed
Fixes
1 parent 2614f28 commit 8fd9c20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

serverless/aws/functions/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __init__(
6666
self.iamRoleStatementsName = self.iamRoleStatements.role
6767
self.iamRoleStatementsInherit = True
6868

69-
configured = list(filter(lambda x: x.get("Ref") == "PythonRequirementsLambdaLayer", layers or []))
69+
configured = list(filter(lambda x: type(x) is dict and x.get("Ref") == "PythonRequirementsLambdaLayer", layers or []))
7070
if (
7171
self._service.plugins.get(PythonRequirements)
7272
and self._service.plugins.get(PythonRequirements).layer

0 commit comments

Comments
 (0)