From 428f46fafe082f181a9264f08c8b2a1613507b2c Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 16 Oct 2020 17:05:19 +0300 Subject: [PATCH] Typo test --- platformio/clients/registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/clients/registry.py b/platformio/clients/registry.py index 795a0495..b0387ce3 100644 --- a/platformio/clients/registry.py +++ b/platformio/clients/registry.py @@ -142,6 +142,6 @@ class RegistryClient(HTTPClient): cache_valid="1h", ) except HTTPClientError as e: - if e.response and e.response.status_code == 404: + if e.response is not None and e.response.status_code == 404: return None raise e