Skip to content

Commit 0565726

Browse files
authored
Merge pull request #380 from raboof/fix-clean_actions
gateway: fix clean_actions. LGTM
2 parents 2783aa5 + 011652d commit 0565726

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gateway/gateway.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def remove_expired_refs(actions: ActionsYAML):
290290
refs_to_remove.extend(
291291
(name, ref)
292292
for ref, details in action.items()
293-
if "expires_at" in details and details["expires_at"] <= date.today() and not details.get("keep")
293+
if details and "expires_at" in details and details["expires_at"] <= date.today() and not details.get("keep")
294294
)
295295

296296
# Changing the iterable during iteration raises a RuntimeError

0 commit comments

Comments
 (0)