From d9482a52106a9c4e3f8cd338fc56ff329f3c6948 Mon Sep 17 00:00:00 2001 From: Believethehype Date: Tue, 12 Dec 2023 10:02:01 +0100 Subject: [PATCH] throw exception/reimburse on upload error --- utils/output_utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/output_utils.py b/utils/output_utils.py index 7a3c336..00990d9 100644 --- a/utils/output_utils.py +++ b/utils/output_utils.py @@ -175,8 +175,7 @@ def upload_media_to_hoster(filepath: str): print(result) return result except: - return "Upload not possible, all hosters didn't work" - + raise Exception("Upload not possible, all hosters didn't work") def build_status_reaction(status, task, amount, content): alt_description = "This is a reaction to a NIP90 DVM AI task. "