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:
parent
aca08c05e5
commit
23de104392
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue