From 5fe80c9b449761985f34322d5f62bea957d6f9f1 Mon Sep 17 00:00:00 2001 From: jerryfletcher21 Date: Fri, 16 May 2025 18:26:56 +0200 Subject: [PATCH] fix ruff warning in telegram_watcher --- api/management/commands/telegram_watcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/management/commands/telegram_watcher.py b/api/management/commands/telegram_watcher.py index 63b71058..93590e43 100644 --- a/api/management/commands/telegram_watcher.py +++ b/api/management/commands/telegram_watcher.py @@ -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"):