mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-29 02:55:19 +01:00
Fix #1956779 [Cant read epub file written using ebooklib](https://bugs.launchpad.net/calibre/+bug/1956779)
This commit is contained in:
parent
a0c55c9026
commit
2e56a2de31
1 changed files with 4 additions and 1 deletions
|
|
@ -558,7 +558,10 @@ def has_name(self, name):
|
|||
def has_name_and_is_not_empty(self, name):
|
||||
if not self.has_name(name):
|
||||
return False
|
||||
return os.path.getsize(self.name_path_map[name]) > 0
|
||||
try:
|
||||
return os.path.getsize(self.name_path_map[name]) > 0
|
||||
except OSError:
|
||||
return False
|
||||
|
||||
def has_name_case_insensitive(self, name):
|
||||
if not name:
|
||||
|
|
|
|||
Loading…
Reference in a new issue