From c56dfda83324701f7a679a41766065a8f31d90ec Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sun, 2 Jan 2022 23:08:21 +0200 Subject: [PATCH] Minor fixes --- platformio/clients/account.py | 2 +- pytest.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platformio/clients/account.py b/platformio/clients/account.py index 69c860f8..f3558c00 100644 --- a/platformio/clients/account.py +++ b/platformio/clients/account.py @@ -73,7 +73,7 @@ class AccountClient(HTTPClient): # pylint:disable=too-many-public-methods try: return super(AccountClient, self).fetch_json_data(*args, **kwargs) except HTTPClientError as exc: - raise AccountError(str(HTTPClientError)) from exc + raise AccountError(exc) from exc def login(self, username, password): try: diff --git a/pytest.ini b/pytest.ini index 03c86580..57763ca7 100644 --- a/pytest.ini +++ b/pytest.ini @@ -2,4 +2,4 @@ filterwarnings = error # Marshmallow - ignore:The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives:DeprecationWarning \ No newline at end of file + ignore:distutils Version classes are deprecated. Use packaging.version instead. \ No newline at end of file