Skip to content

Commit

Permalink
fixes ingestor delete method when no ingestor available
Browse files Browse the repository at this point in the history
  • Loading branch information
actlikewill committed Aug 24, 2023
1 parent 41b3886 commit 55c9cf7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions peachjam/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def delete_document(ingestor_id, expression_frbr_uri):

if not ingestor:
log.info(f"No ingestor with id {ingestor_id} ")
return
if ingestor.enabled:
log.info(f"Deleting document {expression_frbr_uri} with ingestor {ingestor}")

Expand Down

0 comments on commit 55c9cf7

Please sign in to comment.