forked from M-Labs/artiq
1
0
Fork 0

browser: tiny simplification

This commit is contained in:
Robert Jördens 2016-05-03 18:07:43 +02:00
parent 2b506a3c4b
commit 0c74034f4d
1 changed files with 1 additions and 3 deletions

View File

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