Small tweak to use the existing tempdir instead of a new one

This commit is contained in:
Trenton H 2023-01-03 13:05:44 -08:00
parent a185f94c4b
commit cd42d17ffb

View File

@ -142,7 +142,7 @@ class RasterisedDocumentParser(DocumentParser):
text = None
with tempfile.NamedTemporaryFile(
mode="w+",
dir=settings.SCRATCH_DIR,
dir=self.tempdir,
) as tmp:
subprocess.run(
[