Skip to content

Commit 4988f7b

Browse files
handle if diffs is None
1 parent 51158c1 commit 4988f7b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

digital_land/makerules.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@ def get_processing_option(
4747
state_path,
4848
)
4949

50+
diffs = diffs or [] # handle if diffs is None
51+
5052
# If incremental loading is overridden or critical configs changed, process everything
5153
critical_changes = {"code", "pipeline", "collection", "specification"}
52-
if incremental_loading_override or critical_changes & set(diffs or []):
54+
if incremental_loading_override or critical_changes & set(diffs):
5355
return ProcessingOption.PROCESS_ALL
5456

5557
# New resources downloaded

0 commit comments

Comments
 (0)