From 6e03eff3038822cbe9c435a466476aeda8c7fd5b Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 20 Dec 2021 19:05:12 +0200 Subject: [PATCH] Handle base AccountError --- platformio/clients/registry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platformio/clients/registry.py b/platformio/clients/registry.py index f37d3b40..7eeb8211 100644 --- a/platformio/clients/registry.py +++ b/platformio/clients/registry.py @@ -13,7 +13,7 @@ # limitations under the License. from platformio import __registry_api__, fs -from platformio.clients.account import AccountClient, AccountNotAuthorized +from platformio.clients.account import AccountClient, AccountError from platformio.clients.http import HTTPClient, HTTPClientError # pylint: disable=too-many-arguments @@ -37,7 +37,7 @@ class RegistryClient(HTTPClient): for item in info.get("packages", []): if set(item.keys()) & private_permissions: return True - except AccountNotAuthorized: + except AccountError: pass return False