Skip to content

Commit

Permalink
[FIX] in python 3.11 namedtempfile does not support delete_on_close b…
Browse files Browse the repository at this point in the history
…ut delete as keyword argument
  • Loading branch information
dameyerdave committed Jan 23, 2024
1 parent b8e65c4 commit a0f576f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/app/core/ena_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def ena_upload(job: Job):
def webin_upload(job: AnalysisJob):
webin = Command("/usr/bin/java")
webin = webin.bake("-jar", "/opt/webin-cli.jar")
with tempfile.NamedTemporaryFile(delete_on_close=False) as mf:
with tempfile.NamedTemporaryFile(delete=False) as mf:
mf.write(job.manifest.encode("utf-8"))
mf.close()
try:
Expand Down

0 comments on commit a0f576f

Please sign in to comment.