mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 03:08:27 +08:00
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
Block a user