mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-18 00:33:15 +00:00
Merge pull request #1929 from jerryfletcher21/telegram-watcher-check-result
fix result not present in telegram api response
This commit is contained in:
@ -39,7 +39,7 @@ class Command(BaseCommand):
|
||||
f.write(f"Error getting updates: {e}\n{traceback.format_exc()}\n")
|
||||
continue
|
||||
|
||||
if not response["result"]:
|
||||
if not "result" in response or not response["result"]:
|
||||
continue
|
||||
for result in response["result"]:
|
||||
if not result.get("message") or not result.get("message").get("text"):
|
||||
|
Reference in New Issue
Block a user