From 99feeaa44a6b145e4fdf3112d2f47bfe9fe3381a Mon Sep 17 00:00:00 2001 From: ThrawnCA Date: Thu, 26 Mar 2020 15:50:53 +1000 Subject: [PATCH] [QOL-6619] add error handling for race condition during datastore file uploads, #3980 --- ckan/lib/helpers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ckan/lib/helpers.py b/ckan/lib/helpers.py index 8e16f9d7d9f..99ce1558912 100644 --- a/ckan/lib/helpers.py +++ b/ckan/lib/helpers.py @@ -28,6 +28,7 @@ from bleach import clean as bleach_clean, ALLOWED_TAGS, ALLOWED_ATTRIBUTES from pylons import url as _pylons_default_url from ckan.common import config, is_flask_request +import ckan.plugins.toolkit as toolkit from flask import redirect as _flask_redirect from flask import _request_ctx_stack, current_app from routes import redirect_to as _routes_redirect_to