Issue #1257: Fix for specifying no group. Should have returned root group

Change-Id: Id197fd6d121cc152c7d8b64a474ab018087ab112

Former-commit-id: a03cafd9a5 [formerly a21b949c55f7d83832bbec3427a3e5971c695114]
Former-commit-id: e17446851b
This commit is contained in:
Richard Peter 2012-10-10 13:38:46 -05:00
parent 961154e231
commit 0c3ba259b3

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'):