aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/models/article.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/models/article.py')
-rw-r--r--pyaggr3g470r/models/article.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyaggr3g470r/models/article.py b/pyaggr3g470r/models/article.py
index 2b79c6aa..0466bc35 100644
--- a/pyaggr3g470r/models/article.py
+++ b/pyaggr3g470r/models/article.py
@@ -83,5 +83,5 @@ class Article(db.Model):
"like": self.like,
"date": self.date,
"retrieved_date": self.retrieved_date,
- "feed_id": self.source.id,
- "feed_name": self.source.title}
+ "feed_id": getattr(self.source, 'id', None),
+ "feed_name": getattr(self.source, 'title', None)}
bgstack15