From 11cb60056a0c533947890b747126dc3d3ac6f157 Mon Sep 17 00:00:00 2001 From: sgrtye Date: Thu, 4 Apr 2024 17:38:53 +0100 Subject: [PATCH] fix return error --- novel/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/novel/main.py b/novel/main.py index a411a8c..02991a7 100644 --- a/novel/main.py +++ b/novel/main.py @@ -37,6 +37,7 @@ def load_unavailable_ips(): def load_proxies(): try: + proxies = [] response = requests.get(PROXY_URL) if response.status_code == 200: @@ -53,6 +54,8 @@ def load_proxies(): else: raise Exception("Proxy server not responding") + + return proxies except Exception as e: print(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"), str(e))