mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 04:03:52 +02:00
Fix #938 (lit2oeb: Crash converting some LIT files)
This commit is contained in:
parent
3f6d486fb8
commit
673ef45d66
1 changed files with 1 additions and 1 deletions
|
|
@ -217,7 +217,7 @@ def binary_to_text(self, base=0, depth=0):
|
|||
state = 'get attr length'
|
||||
continue
|
||||
attr = None
|
||||
if oc in current_map and current_map[oc]:
|
||||
if current_map and oc in current_map and current_map[oc]:
|
||||
attr = current_map[oc]
|
||||
elif oc in self.attr_map:
|
||||
attr = self.attr_map[oc]
|
||||
|
|
|
|||
Loading…
Reference in a new issue