diff options
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): |