From 8b2ce2f868058c5f9694308a2acf0ec26aee88ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20M=C3=BCller?= Date: Tue, 16 Apr 2024 16:03:53 +0200 Subject: [PATCH] reg: python 3.8 does not have ignore_cleanup_errors --- ckanext/dc_serve/jobs.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ckanext/dc_serve/jobs.py b/ckanext/dc_serve/jobs.py index 5d03dc1..8620dbc 100644 --- a/ckanext/dc_serve/jobs.py +++ b/ckanext/dc_serve/jobs.py @@ -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,