forked from M-Labs/artiq
browser: tiny simplification
This commit is contained in:
parent
2b506a3c4b
commit
0c74034f4d
|
@ -14,12 +14,10 @@ def open_h5(info):
|
||||||
info.suffix() == "h5"):
|
info.suffix() == "h5"):
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
f = h5py.File(info.filePath(), "r")
|
return h5py.File(info.filePath(), "r")
|
||||||
except:
|
except:
|
||||||
logger.warning("unable to read HDF5 file %s", info.filePath(),
|
logger.warning("unable to read HDF5 file %s", info.filePath(),
|
||||||
exc_info=True)
|
exc_info=True)
|
||||||
return
|
|
||||||
return f
|
|
||||||
|
|
||||||
|
|
||||||
class ThumbnailIconProvider(QtWidgets.QFileIconProvider):
|
class ThumbnailIconProvider(QtWidgets.QFileIconProvider):
|
||||||
|
|
Loading…
Reference in New Issue