Skip to content
Snippets Groups Projects
Commit f066d4d9 authored by ale's avatar ale
Browse files

prevent a UnicodeDecodeError in find_all - fixes issue #12

parent 53e4d958
No related branches found
No related tags found
No related merge requests found
...@@ -69,8 +69,8 @@ class LevelDbInterface(base.DbInterface): ...@@ -69,8 +69,8 @@ class LevelDbInterface(base.DbInterface):
return None return None
def _find_all(self, entity_name): def _find_all(self, entity_name):
cursor = self.db.RangeIter('%s:' % entity_name, cursor = self.db.RangeIter(u'%s:' % entity_name,
'%s:\xff' % entity_name) u'%s:\xff' % entity_name)
for key, serialized_data in cursor: for key, serialized_data in cursor:
yield self._deserialize(serialized_data) yield self._deserialize(serialized_data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment