diff --git a/lazyflow/operators/ioOperators/opInputDataReader.py b/lazyflow/operators/ioOperators/opInputDataReader.py index 39d12cdc3..8ea9b35a0 100644 --- a/lazyflow/operators/ioOperators/opInputDataReader.py +++ b/lazyflow/operators/ioOperators/opInputDataReader.py @@ -470,7 +470,7 @@ def _attemptOpenAsRawBinary(self, filePath): raise OpInputDataReader.DatasetReadError(*e.args) from e def _attemptOpenAsH5BlockStore(self, filePath): - if not os.path.splitext(filePath)[1] == ".json": + if not (_supports_h5blockreader and os.path.splitext(filePath)[1] == ".json"): return ([], None) op = OpH5BlockStoreReader(parent=self)