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

Change-Id: Id197fd6d121cc152c7d8b64a474ab018087ab112

Former-commit-id: 7102489193 [formerly a03cafd9a5] [formerly 7102489193 [formerly a03cafd9a5] [formerly e17446851b [formerly a21b949c55f7d83832bbec3427a3e5971c695114]]]
Former-commit-id: e17446851b
Former-commit-id: bbb2c21ccb [formerly 0c3ba259b3]
Former-commit-id: 158098bb4a
This commit is contained in:
Richard Peter 2012-10-10 13:38:46 -05:00
parent 0c1532b6db
commit 00962ca3e9

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