Merge "Issue #1257: Fix for specifying no group. Should have returned root group" into development

Former-commit-id: 8c41772ec10963e33a40b9056d145fe422b76633
This commit is contained in:
Nate Jensen 2012-10-10 17:53:17 -05:00 committed by Gerrit Code Review
commit fc8295a345

View file

@ -632,10 +632,14 @@ class H5pyDataStore(IDataStore.IDataStore):
else:
grp = grp.create_group(s)
else:
try:
grp = f[name]
except KeyError:
raise StorageException("No group " + name + " found")
if name is None or len(name.strip()) == 0:
# if no group is specific default to base group
grp = f['/']
else:
try:
grp = f[name]
except KeyError:
raise StorageException("No group " + name + " found")
t1=time.time()
if timeMap.has_key('getGroup'):