This commit is contained in:
precondition 2024-03-17 18:47:59 +08:00 committed by GitHub
commit 258eb2f29f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -374,7 +374,11 @@ class InterfacePluginAction(InterfaceAction):
result['success'] = False
result['fileobj'] = None
zin = zipfile.ZipFile(book.filename, 'r')
try:
zin = zipfile.ZipFile(book.filename, 'r')
except FileNotFoundError:
print (_('{0} - File "{1}" not found. Make sure the eBook has been properly downloaded in the Kobo app.').format(PLUGIN_NAME, book.filename))
return result
#print ('Kobo library filename: {0}'.format(book.filename))
for userkey in self.userkeys:
print (_('Trying key: '), codecs.encode(userkey, 'hex'))