mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Extended exception coverage
This commit is contained in:
@@ -281,8 +281,8 @@ class Catalogue:
|
|||||||
"""
|
"""
|
||||||
Opens epub as zip file filters then stores as list any files matching cover_regx
|
Opens epub as zip file filters then stores as list any files matching cover_regx
|
||||||
"""
|
"""
|
||||||
cover = book_zip.open(list(filter(self.cover_regx.search, book["files"]))[0])
|
|
||||||
try:
|
try:
|
||||||
|
cover = book_zip.open(list(filter(self.cover_regx.search, book["files"]))[0])
|
||||||
cover = book_zip.read(cover.name)
|
cover = book_zip.read(cover.name)
|
||||||
return cover
|
return cover
|
||||||
except Error as e:
|
except Error as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user