diff --git a/odds/backend/processor/resource_processor.py b/odds/backend/processor/resource_processor.py index cc1a4eb..5386a79 100644 --- a/odds/backend/processor/resource_processor.py +++ b/odds/backend/processor/resource_processor.py @@ -15,7 +15,10 @@ TMP_DIR = os.environ.get('RESOURCE_PROCESSOR_CACHE_DIR') or CACHE_DIR / 'resource-processor-temp' -TMP_DIR.mkdir(exist_ok=True, parents=True) +try: + TMP_DIR.mkdir(exist_ok=True, parents=True) +except: + pass TMP_DIR = str(TMP_DIR) class ResourceProcessor: