diff options
author | Arjun Satarkar <me@arjunsatarkar.net> | 2023-08-04 02:11:17 +0000 |
---|---|---|
committer | Arjun Satarkar <me@arjunsatarkar.net> | 2023-08-04 02:11:17 +0000 |
commit | 5607e62e368900fa824b523589f6b25b1d70a08e (patch) | |
tree | 5bbd8f59a51f59fd58e75f6e13a96185e4cd97e4 | |
parent | 92a42a2fc193c484c1d88b811d7735f448c8e9e0 (diff) | |
download | tagrss-5607e62e368900fa824b523589f6b25b1d70a08e.tar tagrss-5607e62e368900fa824b523589f6b25b1d70a08e.tar.gz tagrss-5607e62e368900fa824b523589f6b25b1d70a08e.zip |
Handle still more network errors gracefully
-rw-r--r-- | tagrss.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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: |