kopia lustrzana https://github.com/wagtail/wagtail
Convert every Cloudflare API error message into string (#3436)
rodzic
92f64bef27
commit
01e891d0c4
|
@ -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)
|
||||
|
|
|
@ -217,6 +217,7 @@ Contributors
|
|||
* Christine Ho
|
||||
* Trent Holliday
|
||||
* jacoor
|
||||
* hdnpl
|
||||
|
||||
Translators
|
||||
===========
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue