Skip to content

Commit 272df8c

Browse files
committed
return Path type as intended
1 parent 263982d commit 272df8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qt/python/mantidqt/mantidqt/dialogs/errorreports/run_pystack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ def _get_output_from_pystack(core_dump_file: Path) -> str:
103103

104104

105105
def _decompress_lz4_file(lz4_core_dump_file: Path) -> Path:
106-
tmp_decompressed_core_file = NamedTemporaryFile()
106+
tmp_decompressed_core_file = NamedTemporaryFile(delete=False)
107107
with lz4.frame.open(lz4_core_dump_file.as_posix(), "r") as lz4_fp:
108108
tmp_decompressed_core_file.write(lz4_fp.read())
109-
return tmp_decompressed_core_file
109+
return Path(tmp_decompressed_core_file.name)
110110

111111

112112
def _is_lz4_file(core_dump_file: Path) -> bool:

0 commit comments

Comments
 (0)