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