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):