Handle base AccountError

This commit is contained in:
Ivan Kravets
2021-12-20 19:05:12 +02:00
parent 3e0b95e1e1
commit 6e03eff303

View File

@ -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