From c294b08e4b2041f76e50e5b8d3ec4c9e69b254a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20P=C3=A1sztor?= Date: Mon, 4 May 2015 23:07:09 +0100 Subject: [PATCH] little bugfix --- jsoncfg/config_classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsoncfg/config_classes.py b/jsoncfg/config_classes.py index 2a157e2..e62f2a8 100644 --- a/jsoncfg/config_classes.py +++ b/jsoncfg/config_classes.py @@ -292,7 +292,7 @@ def __getitem__(self, item): if isinstance(item, numbers.Integral): raise JSONConfigNodeTypeError( self, - ConfigJSONObject, + ConfigJSONArray, 'You are trying to index into an object as if it was an array. index=%s' % (item,) ) if not isinstance(item, my_basestring):