installer and systemd service added
This commit is contained in:
32
api.py.patch
Normal file
32
api.py.patch
Normal file
@@ -0,0 +1,32 @@
|
||||
From 7b3421cf893ef8ea36978ae1343f7c8d5d353412 Mon Sep 17 00:00:00 2001
|
||||
From: Hash Borgir <atirjavid@gmail.com>
|
||||
Date: Tue, 13 Feb 2024 15:48:35 -0700
|
||||
Subject: [PATCH] api.py patch
|
||||
|
||||
---
|
||||
simplematrixbotlib/api.py | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/simplematrixbotlib/api.py b/simplematrixbotlib/api.py
|
||||
index 6d51b38..3af7e7e 100644
|
||||
--- a/simplematrixbotlib/api.py
|
||||
+++ b/simplematrixbotlib/api.py
|
||||
@@ -347,6 +347,7 @@ class Api:
|
||||
pass # Successful upload
|
||||
else:
|
||||
print(f"Failed Upload Response: {resp}")
|
||||
+ return
|
||||
|
||||
content = {
|
||||
"body": os.path.basename(image_filepath),
|
||||
@@ -394,6 +395,7 @@ class Api:
|
||||
pass # Successful upload
|
||||
else:
|
||||
print(f"Failed Upload Response: {resp}")
|
||||
+ return
|
||||
|
||||
content = {
|
||||
"body": os.path.basename(video_filepath),
|
||||
--
|
||||
2.34.1
|
||||
|
Reference in New Issue
Block a user