Skip to content

Commit 1b1f835

Browse files
committed
feat: Don't break on AttributeError
It's possible that a valid feed is sometimes not valid, due to a validation page with an http redirect. Such a page will trigger `object has no attribute 'link'` errors.
1 parent 202b9ff commit 1b1f835

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

pyproject.toml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "django-rss-filter"
3-
version = "0.11.0"
3+
version = "0.12.0"
44
description = "Filter public RSS feeds, remove articles that contain certain keywords or categories."
55
authors = [
66
{name = "Kevin Renskers", email = "kevin@loopwerk.io"},
@@ -31,8 +31,12 @@ Repository = "https://github.com/loopwerk/django-rss-filter.git"
3131
Issues = "https://github.com/loopwerk/django-rss-filter/issues"
3232

3333
[build-system]
34-
requires = ["hatchling"]
35-
build-backend = "hatchling.build"
34+
requires = ["uv_build>=0.7.19,<0.8.0"]
35+
build-backend = "uv_build"
36+
37+
[tool.uv.build-backend]
38+
module-name = "rssfilter"
39+
module-root = ""
3640

3741
[tool.uv]
3842
package = true

rssfilter/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ 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):
83+
except (ConnectTimeout, ConnectError, AttributeError):
8484
# Do nothing, just return the cached version
8585
pass
8686

0 commit comments

Comments
 (0)