From 05ab891879f9d3e466d6d563a545ab22f4b258a1 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 21 Nov 2021 01:42:54 +0000 Subject: added more "mirrors" --- src/util.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/util.py') diff --git a/src/util.py b/src/util.py index 2411f1d..99bb82e 100644 --- a/src/util.py +++ b/src/util.py @@ -30,7 +30,10 @@ def print_reset(text): print(colors.RESET + text) def curl(url): - r = requests.get(url) + try: + r = requests.get(url) + except: + return 500, "" return r.status_code, r.text def mkdir(path): -- cgit v1.2.1