Skip to content
Snippets Groups Projects
Commit 2bcd1f6a authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'hasStore.StoreGateBindings-20201222' into 'master'

StoreGateBindings: Protect against missing hasStore().

See merge request !39371
parents 1b41416f e02abb93
No related branches found
No related tags found
No related merge requests found
......@@ -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.')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment