mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Fix an issue with "'NoneType' object has no attribute 'status_code'"
This commit is contained in:
@ -142,6 +142,6 @@ class RegistryClient(HTTPClient):
|
||||
cache_valid="1h",
|
||||
)
|
||||
except HTTPClientError as e:
|
||||
if e.response.status_code == 404:
|
||||
if e.response and e.response.status_code == 404:
|
||||
return None
|
||||
raise e
|
||||
|
Reference in New Issue
Block a user