summaryrefslogtreecommitdiff
path: root/src/util.py
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2021-11-21 01:42:54 +0000
committerdavidovski <david@davidovski.xyz>2021-11-21 01:42:54 +0000
commit05ab891879f9d3e466d6d563a545ab22f4b258a1 (patch)
treeaa0715633cbec9ceacbc8ee0872727468cb3f1f9 /src/util.py
parent49b1fddbbd961889b2048437c22fa819c1da17df (diff)
added more "mirrors"
Diffstat (limited to 'src/util.py')
-rw-r--r--src/util.py5
1 files changed, 4 insertions, 1 deletions
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):