Skip to content

Commit

Permalink
reg: python 3.8 does not have ignore_cleanup_errors
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Apr 16, 2024
1 parent d718ec2 commit 8b2ce2f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ckanext/dc_serve/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ def generate_condensed_resource_job(resource, override=False):
if not cache_loc:
cache_loc = None # probably defaults to /tmp in TemporaryDirectory

with tempfile.TemporaryDirectory(ignore_cleanup_errors=True,
dir=cache_loc) as ttd_name:
with tempfile.TemporaryDirectory(dir=cache_loc) as ttd_name:
path_cond = pathlib.Path(ttd_name) / "condensed.rtdc"
with CKANResourceFileLock(
resource_id=rid,
Expand Down

0 comments on commit 8b2ce2f

Please sign in to comment.