2
0
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:
Robert Jördens 2016-05-03 18:07:43 +02:00
parent 2b506a3c4b
commit 0c74034f4d

View File

@ -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):