From 5607e62e368900fa824b523589f6b25b1d70a08e Mon Sep 17 00:00:00 2001 From: Arjun Satarkar Date: Fri, 4 Aug 2023 07:41:17 +0530 Subject: Handle still more network errors gracefully --- tagrss.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tagrss.py b/tagrss.py index 9c134a5..e5a5708 100644 --- a/tagrss.py +++ b/tagrss.py @@ -418,7 +418,11 @@ class TagRss: response = requests.get(source) except requests.ConnectionError as e: raise FeedFetchError(feed_source=source, underlying=e) - except requests.exceptions.MissingSchema as e: + except ( + requests.exceptions.InvalidSchema, + requests.exceptions.InvalidURL, + requests.exceptions.MissingSchema, + ) as e: raise FeedFetchError(feed_source=source, bad_source=True, underlying=e) epoch_downloaded: int = int(time.time()) if response.status_code != requests.codes.ok: -- cgit v1.2.3-57-g22cb