1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2025-03-12 15:02:55 +00:00

move reading list update into a try/except

move reading list update into a try/except to avoid errors found when not using reading list functionality.
This commit is contained in:
barbequesauce 2018-07-09 16:49:34 -04:00 committed by evilhero
parent aca08c05e5
commit 23de104392

View file

@ -84,7 +84,10 @@ class OPDS(object):
return serve_file(path=self.img, content_type='image/jpeg')
if self.file and self.filename:
if self.issue_id:
readinglist.Readinglist(IssueID=self.issue_id).markasRead()
try:
readinglist.Readinglist(IssueID=self.issue_id).markasRead()
except:
logger.fdebug('No reading list found to update.)
return serve_download(path=self.file, name=self.filename)
if isinstance(self.data, basestring):
return self.data