Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into fix/first-order-dangl…
Browse files Browse the repository at this point in the history
…ing-affirmation-delete
  • Loading branch information
originalsouth committed Oct 16, 2024
2 parents 00a0c99 + 9ad3461 commit 91e1469
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions boefjes/boefjes/job_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,14 @@ def handle(self, boefje_meta: BoefjeMeta) -> None:
ooi = get_octopoes_api_connector(boefje_meta.organization).get(
reference, valid_time=datetime.now(timezone.utc)
)
except ObjectNotFoundException as e:
raise ObjectNotFoundException(f"Object {reference} not found in Octopoes") from e
except ObjectNotFoundException:
logger.info(
"Can't run boefje because OOI does not exist anymore",
boefje_id=boefje_meta.boefje.id,
ooi=reference,
task_id=boefje_meta.id,
)
return

boefje_meta.arguments["input"] = ooi.serialize()

Expand Down

0 comments on commit 91e1469

Please sign in to comment.