]> git.llucax.com Git - software/pymin.git/blobdiff - pymin/service/util.py
Import HandlerError in vpn service handler (closes #32)
[software/pymin.git] / pymin / service / util.py
index cdea1a09aa1d22a391e7176b3fd096795e6e9eb9..e8e65a1c71eb151ccfa3f635a12d929f6ead79a9 100644 (file)
@@ -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):