More informative out-of-memory error (#644)

* more informative error message: memory error

* flake fix
This commit is contained in:
Charlotte Weaver
2019-03-12 14:19:00 -07:00
committed by GitHub
parent aa5ce4a2f1
commit e875ed739b

View File

@@ -143,6 +143,9 @@ class ScanpyEngine(CXGDriver):
"using `cellxgene prepare`, please run `cellxgene prepare --help` for more "
"information."
)
except MemoryError:
raise ScanpyFileError("Error while loading file: out of memory, file is too large"
" for memory available")
except Exception as e:
raise ScanpyFileError(
f"Error while loading file: {e}, File must be in the .h5ad format, please check "