From 12bc8e6a9a51acb0063ce346995f0f9035ec962a Mon Sep 17 00:00:00 2001 From: Bence Kiss-Dobronyi Date: Mon, 17 Sep 2018 22:26:30 +0200 Subject: [PATCH] Update dataset.py self.__value keys are stored as str, therefore line 265 self._2idx return has to be converted to str otherwise it raises a KeyError could this be a python3 thing? --- jsonstat/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonstat/dataset.py b/jsonstat/dataset.py index 9760c30..beebaa9 100644 --- a/jsonstat/dataset.py +++ b/jsonstat/dataset.py @@ -262,7 +262,7 @@ def data(self, *args, **kargs): raise JsonStatException('dataset not initialized') # decoding args - idx = self._2idx(*args, **kargs) + idx = str(self._2idx(*args, **kargs)) value = self.__value[idx] #