Merge pull request #1936 from jerryfletcher21/fix-ruff-warning

fix ruff warning in telegram_watcher
This commit is contained in:
KoalaSat
2025-05-20 08:46:21 +00:00
committed by GitHub

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"):