HDFGroup / h5pyd

h5py distributed - Python client library for HDF Rest API
Other
114 stars 38 forks source link

h5pyd._hl.folders.Folder.__repr__() and .domain fail on root folder #72

Closed JacobDuckett closed 4 years ago

JacobDuckett commented 4 years ago

Folder.__repr__() and Folder.domain fail with the same error that arises from similar lines of code:

self._domain + '/'

In the case of the root server folder, self._domain is set to None on line 114, causing either of the above methods to throw a TypeError.

jreadey commented 4 years ago

@JacobDuckett's PR (https://github.com/HDFGroup/h5pyd/commit/38e758564ab4bea1a313f7fac4ec054917b82d40) resolves this.