fix ruff warning in telegram_watcher

This commit is contained in:
jerryfletcher21
2025-05-16 18:26:56 +02:00
parent 7e1d69fc49
commit 5fe80c9b44

View File

@ -39,7 +39,7 @@ class Command(BaseCommand):
f.write(f"Error getting updates: {e}\n{traceback.format_exc()}\n")
continue
if not "result" in response or not response["result"]:
if "result" not in response or not response["result"]:
continue
for result in response["result"]:
if not result.get("message") or not result.get("message").get("text"):