mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-11-20 05:36:26 +01:00
throw exception/reimburse on upload error
This commit is contained in:
@@ -175,8 +175,7 @@ def upload_media_to_hoster(filepath: str):
|
|||||||
print(result)
|
print(result)
|
||||||
return result
|
return result
|
||||||
except:
|
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):
|
def build_status_reaction(status, task, amount, content):
|
||||||
alt_description = "This is a reaction to a NIP90 DVM AI task. "
|
alt_description = "This is a reaction to a NIP90 DVM AI task. "
|
||||||
|
|||||||
Reference in New Issue
Block a user