diff --git a/telegram/views.py b/telegram/views.py index d7650b9..de6fbd6 100644 --- a/telegram/views.py +++ b/telegram/views.py @@ -20,9 +20,7 @@ def get_telegram_safe_ips(): - telegram_ips_cache = cache.get("telegram_safe_ip_list") - - if telegram_ips_cache: + if telegram_ips_cache := cache.get("telegram_safe_ip_list"): return telegram_ips_cache telegram_ips = requests.get("https://core.telegram.org/bots/webhooks").json()[