throw exception/reimburse on upload error

This commit is contained in:
Believethehype
2023-12-12 10:02:01 +01:00
parent 15c52d224c
commit d9482a5210

View File

@@ -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. "