Fix #938 (lit2oeb: Crash converting some LIT files)

This commit is contained in:
Marshall T. Vandegrift 2008-08-11 12:32:02 -04:00
parent 3f6d486fb8
commit 673ef45d66

View file

@ -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]