X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/12b7d86229346c68e653a51d1e6598a5973901ba..b53a45e7e79b31d0b6b44df0405366cc8a2fd016:/pymin/service/util.py?ds=sidebyside diff --git a/pymin/service/util.py b/pymin/service/util.py index cdea1a0..e8e65a1 100644 --- a/pymin/service/util.py +++ b/pymin/service/util.py @@ -1051,8 +1051,8 @@ class ComposedSubHandler(SubHandler): # do we have the same item? then raise an error if key in self._vattr(cont): log.debug(u'ComposedSubHandler.add: allready exists') - if not isinstance(self._attr(), dict): - key = self._attr().index(item) + if not isinstance(self._attr(cont), dict): + key = self._attr(cont).index(item) raise ItemAlreadyExistsError(key) # do we have the same item, but logically deleted? then update flags if key in self._attr(cont):