Commits

Victor Stinner committed d065321

GenericFieldSet._fixFeedError() uses makeUnicode()

Comments (0)

Files changed (1)

hachoir-core/hachoir_core/field/generic_field_set.py

     createRawField, createNullField, createPaddingField, FakeArray)
 from hachoir_core.dict import Dict, UniqKeyError
 from hachoir_core.error import HACHOIR_ERRORS
-from hachoir_core.tools import lowerBound
+from hachoir_core.tools import lowerBound, makeUnicode
 import hachoir_core.config as config
 
 class GenericFieldSet(BasicFieldSet):
         """
         if self._size is None or not self.autofix:
             return False
-        self.warning(unicode(exception))
+        self.warning(makeUnicode(exception))
         return self._fixLastField()
 
     def _feedUntil(self, field_name):