From a8d0c12625d04852735755a60a53f2630be6d277 Mon Sep 17 00:00:00 2001 From: andchiind Date: Thu, 1 Jun 2023 09:32:06 +0200 Subject: [PATCH] Send warning when failing to upload mission --- src/isar/storage/uploader.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/isar/storage/uploader.py b/src/isar/storage/uploader.py index 6e596c84..228f9987 100644 --- a/src/isar/storage/uploader.py +++ b/src/isar/storage/uploader.py @@ -85,6 +85,12 @@ def run(self) -> None: inspection, mission = self.upload_queue.get(timeout=1) + if not mission: + self.logger.warning( + "Failed to upload missing mission from upload queue" + ) + continue + # If new item from thread queue, add one per handler to internal queue: for storage_handler in self.storage_handlers: new_item: UploaderQueueItem = UploaderQueueItem(