File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11[project ]
22name = " django-rss-filter"
3- version = " 0.12 .0"
3+ version = " 0.13 .0"
44description = " Filter public RSS feeds, remove articles that contain certain keywords or categories."
55authors = [
66 {name = " Kevin Renskers" , email = " kevin@loopwerk.io" },
Original file line number Diff line number Diff line change 66from django .db import models
77from django .urls import reverse
88from django .utils import timezone
9- from httpx import ConnectError , ConnectTimeout
9+ from httpx import ConnectError , ConnectTimeout , ReadTimeout
1010
1111from . import USER_AGENT
1212from .settings import RSS_FILTER_CACHE_SECONDS
@@ -80,8 +80,8 @@ def get_feed_body(self) -> str:
8080 self .feed_body = r .text
8181 self .cache_date = timezone .now ()
8282 self .save ()
83- except (ConnectTimeout , ConnectError , AttributeError ):
84- # Do nothing, just return the cached version
83+ except (ConnectTimeout , ConnectError , ReadTimeout ):
84+ # Do nothing, just return the cached version (if available)
8585 pass
8686
8787 return self .feed_body
You can’t perform that action at this time.
0 commit comments