Skip to content

Commit

Permalink
fix return error
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrtye committed Apr 4, 2024
1 parent a6e7e84 commit 11cb600
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions novel/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def load_unavailable_ips():

def load_proxies():
try:
proxies = []
response = requests.get(PROXY_URL)

if response.status_code == 200:
Expand All @@ -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))
Expand Down

0 comments on commit 11cb600

Please sign in to comment.