diff options
author | davidovski <david@davidovski.xyz> | 2021-11-21 01:42:54 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2021-11-21 01:42:54 +0000 |
commit | 05ab891879f9d3e466d6d563a545ab22f4b258a1 (patch) | |
tree | aa0715633cbec9ceacbc8ee0872727468cb3f1f9 /src/util.py | |
parent | 49b1fddbbd961889b2048437c22fa819c1da17df (diff) |
added more "mirrors"
Diffstat (limited to 'src/util.py')
-rw-r--r-- | src/util.py | 5 |
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): |