Merge "Issue #1257: Fix for specifying no group. Should have returned root group" into development
Former-commit-id: 8c41772ec10963e33a40b9056d145fe422b76633
This commit is contained in:
commit
fc8295a345
1 changed files with 8 additions and 4 deletions
|
@ -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'):
|
||||
|
|
Loading…
Add table
Reference in a new issue