diff --git a/findthatcharity_import/spiders/ccew.py b/findthatcharity_import/spiders/ccew.py index 3fcbcb0..45c3a02 100644 --- a/findthatcharity_import/spiders/ccew.py +++ b/findthatcharity_import/spiders/ccew.py @@ -209,7 +209,7 @@ def set_charity(self, regno, charity): def get_all_charities(self): if self.redis: for regno, charity in self.redis.hscan_iter('charities'): - yield (regno, pickle.loads(charity)) + yield (regno.decode(), pickle.loads(charity)) else: return self.charities.items()