mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-28 22:15:58 +01:00
...
This commit is contained in:
parent
92eb7e7ac1
commit
8aa1df125e
1 changed files with 2 additions and 1 deletions
|
|
@ -254,7 +254,8 @@ def resource_adder(self, link_, base=None):
|
|||
except EnvironmentError:
|
||||
pass
|
||||
else:
|
||||
media_type = self.guess_type('dummy.'+img)[0] or self.BINARY_MIME
|
||||
if img:
|
||||
media_type = self.guess_type('dummy.'+img)[0] or self.BINARY_MIME
|
||||
|
||||
self.oeb.log.debug('Added', link)
|
||||
self.oeb.container = self.DirContainer(os.path.dirname(link),
|
||||
|
|
|
|||
Loading…
Reference in a new issue