novaposhta-python-client 0.1.8__tar.gz → 0.1.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {novaposhta_python_client-0.1.8 → novaposhta_python_client-0.1.9}/PKG-INFO +1 -1
- {novaposhta_python_client-0.1.8 → novaposhta_python_client-0.1.9}/novaposhta/client.py +8 -3
- {novaposhta_python_client-0.1.8 → novaposhta_python_client-0.1.9}/pyproject.toml +1 -1
- {novaposhta_python_client-0.1.8 → novaposhta_python_client-0.1.9}/LICENSE.md +0 -0
- {novaposhta_python_client-0.1.8 → novaposhta_python_client-0.1.9}/README.md +0 -0
- {novaposhta_python_client-0.1.8 → novaposhta_python_client-0.1.9}/novaposhta/__init__.py +0 -0
- {novaposhta_python_client-0.1.8 → novaposhta_python_client-0.1.9}/novaposhta/models/__init__.py +0 -0
- {novaposhta_python_client-0.1.8 → novaposhta_python_client-0.1.9}/novaposhta/models/additional_service.py +0 -0
- {novaposhta_python_client-0.1.8 → novaposhta_python_client-0.1.9}/novaposhta/models/address.py +0 -0
- {novaposhta_python_client-0.1.8 → novaposhta_python_client-0.1.9}/novaposhta/models/base.py +0 -0
- {novaposhta_python_client-0.1.8 → novaposhta_python_client-0.1.9}/novaposhta/models/common.py +0 -0
- {novaposhta_python_client-0.1.8 → novaposhta_python_client-0.1.9}/novaposhta/models/contact_person.py +0 -0
- {novaposhta_python_client-0.1.8 → novaposhta_python_client-0.1.9}/novaposhta/models/counterparty.py +0 -0
- {novaposhta_python_client-0.1.8 → novaposhta_python_client-0.1.9}/novaposhta/models/internet_document.py +0 -0
- {novaposhta_python_client-0.1.8 → novaposhta_python_client-0.1.9}/novaposhta/models/scan_sheet.py +0 -0
- {novaposhta_python_client-0.1.8 → novaposhta_python_client-0.1.9}/novaposhta/models/tracking_document.py +0 -0
- {novaposhta_python_client-0.1.8 → novaposhta_python_client-0.1.9}/novaposhta/mypi.ini +0 -0
- {novaposhta_python_client-0.1.8 → novaposhta_python_client-0.1.9}/novaposhta/types.py +0 -0
|
@@ -153,9 +153,14 @@ class NovaPoshtaApi:
|
|
|
153
153
|
|
|
154
154
|
if response["success"]:
|
|
155
155
|
return response
|
|
156
|
-
|
|
157
|
-
error =
|
|
158
|
-
if
|
|
156
|
+
errors = response["errors"]
|
|
157
|
+
error = ""
|
|
158
|
+
if isinstance(errors, list):
|
|
159
|
+
error = ", ".join(errors)
|
|
160
|
+
elif isinstance(errors, dict):
|
|
161
|
+
error = ", ".join([f"{k}: {v}" for k, v in errors.items()])
|
|
162
|
+
|
|
163
|
+
if "API key" in error:
|
|
159
164
|
raise InvalidAPIKeyError(error)
|
|
160
165
|
else:
|
|
161
166
|
raise APIRequestError(error)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{novaposhta_python_client-0.1.8 → novaposhta_python_client-0.1.9}/novaposhta/models/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{novaposhta_python_client-0.1.8 → novaposhta_python_client-0.1.9}/novaposhta/models/address.py
RENAMED
|
File without changes
|
|
File without changes
|
{novaposhta_python_client-0.1.8 → novaposhta_python_client-0.1.9}/novaposhta/models/common.py
RENAMED
|
File without changes
|
|
File without changes
|
{novaposhta_python_client-0.1.8 → novaposhta_python_client-0.1.9}/novaposhta/models/counterparty.py
RENAMED
|
File without changes
|
|
File without changes
|
{novaposhta_python_client-0.1.8 → novaposhta_python_client-0.1.9}/novaposhta/models/scan_sheet.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|