Skip to content

Commit

Permalink
fix KeyError
Browse files Browse the repository at this point in the history
  • Loading branch information
bikubi committed Nov 13, 2024
1 parent fa75dbc commit ff0cec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion froide/foirequest/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def redact_attachment_task(att_id, target_id, instructions):

target.can_approve = True
target.pending = False
if instructions["auto_approve"]:
if instructions.get("auto_approve"):
target.approve_and_save()
FoiAttachment.attachment_approved.send(sender=target, user=None, redacted=True)
else:
Expand Down

0 comments on commit ff0cec2

Please sign in to comment.