Skip to content

Commit 77fd09a

Browse files
authored
fix: check pathParameters is None (#89)
1 parent c0f1f0c commit 77fd09a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cumulus_lambda_functions/cumulus_collections_dapa/cumulus_collections_dapa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __get_collection_id(self):
3434
if 'pathParameters' not in self.__event:
3535
return self
3636
path_param_dict = self.__event['pathParameters']
37-
if 'collectionId' not in path_param_dict:
37+
if path_param_dict is None or 'collectionId' not in path_param_dict:
3838
return self
3939
collection_id = path_param_dict['collectionId']
4040
if collection_id == '*':

0 commit comments

Comments
 (0)