Convert every Cloudflare API error message into string (#3436)

pull/2442/merge
hyden 2017-03-08 22:57:07 +01:00 zatwierdzone przez Matt Westcott
rodzic 92f64bef27
commit 01e891d0c4
4 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -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)

Wyświetl plik

@ -217,6 +217,7 @@ Contributors
* Christine Ho
* Trent Holliday
* jacoor
* hdnpl
Translators
===========

Wyświetl plik

@ -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

Wyświetl plik

@ -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