From bb23ede9a01eed984081be06fca596222acbb9e3 Mon Sep 17 00:00:00 2001 From: space-nuko <24979496+space-nuko@users.noreply.github.com> Date: Mon, 15 May 2023 17:50:02 -0500 Subject: [PATCH] rest of pyget thanks matrix --- disco_utils.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/disco_utils.py b/disco_utils.py index 89e834f..738cf56 100644 --- a/disco_utils.py +++ b/disco_utils.py @@ -218,3 +218,10 @@ def pyget(url, path=None, filename=None): print(f"Unable to save file to: {path}") except requests.exceptions.HTTPError as errh: print(f"HTTP Error: ({url}): {errh}") + except requests.exceptions.ConnectionError as errc: + print(f"Connection Error: ({url}): {errc}") + except requests.exceptions.Timeout as errt: + print(f"Timeout Error: ({url}): {errt}") + except requests.exceptions.RequestException as err: + print(f"Request Exception: ({url}): {err}") + return False