From 55c9cf769f8b3d3b41b80703ca55bad65972dc19 Mon Sep 17 00:00:00 2001 From: Wilson Gaturu Date: Thu, 24 Aug 2023 04:41:26 +0300 Subject: [PATCH] fixes ingestor delete method when no ingestor available --- peachjam/tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/peachjam/tasks.py b/peachjam/tasks.py index 8ead2342c..f9a01515b 100644 --- a/peachjam/tasks.py +++ b/peachjam/tasks.py @@ -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}")