aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2023-08-04 02:11:17 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2023-08-04 02:11:17 +0000
commit5607e62e368900fa824b523589f6b25b1d70a08e (patch)
tree5bbd8f59a51f59fd58e75f6e13a96185e4cd97e4
parent92a42a2fc193c484c1d88b811d7735f448c8e9e0 (diff)
downloadtagrss-5607e62e368900fa824b523589f6b25b1d70a08e.tar
tagrss-5607e62e368900fa824b523589f6b25b1d70a08e.tar.gz
tagrss-5607e62e368900fa824b523589f6b25b1d70a08e.zip
Handle still more network errors gracefully
-rw-r--r--tagrss.py6
1 files changed, 5 insertions, 1 deletions
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: