From 6a3f75349593c052d6fe8c740528d75ad046e041 Mon Sep 17 00:00:00 2001 From: amercader Date: Fri, 10 Jan 2020 18:00:00 +0100 Subject: [PATCH] [#5152] Yet another unprefixed literal --- ckan/views/resource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckan/views/resource.py b/ckan/views/resource.py index abfd9737382..a2f141212fd 100644 --- a/ckan/views/resource.py +++ b/ckan/views/resource.py @@ -243,7 +243,7 @@ def post(self, package_type, id): except ValidationError as e: errors = e.error_dict error_summary = e.error_summary - if data.get(u'url_type') == u'upload' and data.get('url'): + if data.get(u'url_type') == u'upload' and data.get(u'url'): data[u'url'] = u'' data[u'url_type'] = u'' errors[u'previous_upload'] = True