From 5e393bd94cbc7d0ab0fd60725ebb8f09ea719a55 Mon Sep 17 00:00:00 2001 From: Arcry Date: Sun, 8 May 2022 20:57:22 +0300 Subject: [PATCH] add ssl cert excaption to check_website --- simple_image_download/simple_image_download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple_image_download/simple_image_download.py b/simple_image_download/simple_image_download.py index ae673ca..9b9de28 100644 --- a/simple_image_download/simple_image_download.py +++ b/simple_image_download/simple_image_download.py @@ -40,7 +40,7 @@ def check_webpage(url): request = requests.get(url, allow_redirects=True, timeout=10) if 'html' not in str(request.content): checked_url = request - except ReadTimeout as err: + except (ReadTimeout, requests.exceptions.SSLError) as err: print(err) pass return checked_url