Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 3b8e699

Browse files
committed
issue-181 HTTP response code 412 not handled
1 parent 2da9a7b commit 3b8e699

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CloudFlare/cloudflare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def _call_network(self, method, headers, parts, identifiers, params, data_str, d
333333
self.logger.debug('Response: 429 Header Retry-After: %s', retry_after)
334334

335335
# if (response_code >= 400 and response_code <= 499) or response_code == 500:
336-
if response_code in [400,401,403,404,405,500]:
336+
if response_code in [400,401,403,404,405,412,500]:
337337
# The /certificates API call insists on a 500 error return and yet has valid error data
338338
# Other API calls can return 400 or 4xx with valid response data
339339
# lets check and convert if able

0 commit comments

Comments
 (0)