From 1efa5e92d9e243750d1fe36cb5414558d1ee4207 Mon Sep 17 00:00:00 2001 From: Martin Levy Date: Wed, 15 Jan 2020 15:17:51 -0800 Subject: [PATCH] made sure error chain would correctly be passed with an exception --- CloudFlare/cloudflare.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CloudFlare/cloudflare.py b/CloudFlare/cloudflare.py index d562045..4b6ff3d 100644 --- a/CloudFlare/cloudflare.py +++ b/CloudFlare/cloudflare.py @@ -461,8 +461,8 @@ def _call(self, method, headers, parts, message = errors['error'] else: message = '' - if 'messages' in response_data: - errors['error_chain'] = response_data['messages'] + ##if 'messages' in response_data: + ## errors['error_chain'] = response_data['messages'] if 'error_chain' in errors: error_chain = errors['error_chain'] for error in error_chain: