mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing invalid string error on feed error histories.
This commit is contained in:
parent
468f12e9ff
commit
e2f419cb13
1 changed files with 5 additions and 0 deletions
|
@ -795,6 +795,11 @@ class MFeedFetchHistory(mongo.Document):
|
|||
'collection': 'feed_fetch_history',
|
||||
'allow_inheritance': False,
|
||||
}
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
if not isinstance(self.exception, basestring):
|
||||
self.exception = unicode(self.exception)
|
||||
super(MFeedFetchHistory, self).save(*args, **kwargs)
|
||||
|
||||
class PageFetchHistory(models.Model):
|
||||
feed = models.ForeignKey(Feed, related_name='page_fetch_history')
|
||||
|
|
Loading…
Add table
Reference in a new issue