diff --git a/Control/StoreGateBindings/python/Bindings.py b/Control/StoreGateBindings/python/Bindings.py index 07d8c9b46fd535518d3ff5fd6992be3c07a04fb1..9797e0490a0b5680d9a634963ee8259d10f35c4c 100644 --- a/Control/StoreGateBindings/python/Bindings.py +++ b/Control/StoreGateBindings/python/Bindings.py @@ -85,7 +85,7 @@ def _setup(): ret = py_sg_getitem(self, str(key).encode()) except LookupError as err: raise KeyError(str(err)) - if ret and hasattr(ret,'setStore') and not ret.hasStore(): + if ret and hasattr(ret,'setStore') and hasattr(ret,'hasStore') and not ret.hasStore(): if not hasattr(ret,'trackIndices') or ret.trackIndices(): if py_sg_contains (self, 'SG::IConstAuxStore', key + 'Aux.'): aux = py_retrieve (self, 'SG::IConstAuxStore', key + 'Aux.')