mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #938 (lit2oeb: Crash converting some LIT files)
This commit is contained in:
parent
3f6d486fb8
commit
673ef45d66
@ -217,7 +217,7 @@ class UnBinary(object):
|
||||
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…
x
Reference in New Issue
Block a user