Skip to content

Commit b625e46

Browse files
committed
raise error if linkname not supplied
1 parent de97a34 commit b625e46

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

h5json/hdf5db.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2857,6 +2857,10 @@ def getLinkItemByObj(self, parent, link_name):
28572857
def getLinkItemByUuid(self, grpUuid, link_name):
28582858
self.log.info(
28592859
"db.getLinkItemByUuid(" + grpUuid + ", [" + link_name + "])")
2860+
if not link_name:
2861+
msg = "link_name not specified"
2862+
self.log.info(msg)
2863+
raise IOError(errno.EINVAL, msg)
28602864

28612865
self.initFile()
28622866
parent = self.getGroupObjByUuid(grpUuid)

0 commit comments

Comments
 (0)