diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 4f7c085fe2..2d93469e47 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -25,6 +25,7 @@ Changelog * Fix: IDs used in tabbed interfaces are now namespaced to avoid collisions with other page elements (Janneke Janssen) * Fix: Page title not displaying page name when moving a page (Trent Holliday) * Fix: The ModelAdmin module can now work without the wagtailimages and wagtaildocs apps installed (Andy Babic) + * Fix: Cloudflare error handling now handles non-string error responses correctly (hdnpl) 1.9 (16.02.2017) diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index 7db542f1ef..85b157e5f8 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -217,6 +217,7 @@ Contributors * Christine Ho * Trent Holliday * jacoor +* hdnpl Translators =========== diff --git a/docs/releases/1.10.rst b/docs/releases/1.10.rst index de591c56fa..3964b78055 100644 --- a/docs/releases/1.10.rst +++ b/docs/releases/1.10.rst @@ -39,6 +39,7 @@ Bug fixes * IDs used in tabbed interfaces are now namespaced to avoid collisions with other page elements (Janneke Janssen) * Page title not displaying page name when moving a page (Trent Holliday) * The ModelAdmin module can now work without the wagtailimages and wagtaildocs apps installed (Andy Babic) + * Cloudflare error handling now handles non-string error responses correctly (hdnpl) Upgrade considerations diff --git a/wagtail/contrib/wagtailfrontendcache/backends.py b/wagtail/contrib/wagtailfrontendcache/backends.py index 0c58779531..22c7f5f0ab 100644 --- a/wagtail/contrib/wagtailfrontendcache/backends.py +++ b/wagtail/contrib/wagtailfrontendcache/backends.py @@ -101,7 +101,7 @@ class CloudflareBackend(BaseBackend): return if response_json['success'] is False: - error_messages = ', '.join([err['message'] for err in response_json['errors']]) + error_messages = ', '.join([str(err['message']) for err in response_json['errors']]) logger.error("Couldn't purge '%s' from Cloudflare. Cloudflare errors '%s'", url, error_messages) return