pyznuny 0.0.2__py3-none-any.whl → 0.0.4__py3-none-any.whl
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.
pyznuny/ticket/client.py
CHANGED
|
@@ -192,7 +192,10 @@ class TicketClient:
|
|
|
192
192
|
error = response.text
|
|
193
193
|
# TODO: improve error to handle status codes
|
|
194
194
|
self._raise_error(error)
|
|
195
|
-
|
|
195
|
+
|
|
196
|
+
if error := response.json().get("Error"):
|
|
197
|
+
self._raise_error(error)
|
|
198
|
+
|
|
196
199
|
return response
|
|
197
200
|
|
|
198
201
|
def _raise_error(self, error: Mapping[str, Any]) -> None:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyznuny
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Summary: A Python client for interacting with the Znuny ticketing system API.
|
|
5
5
|
Author-email: Junior Rosa <jr.dasrosas@gmail.com>, Pablo Gascon <pablogasconiel445@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/Junior-Rosa/py-znuny
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
pyznuny/__init__.py,sha256=2hs3juXhAKpKyn_poQYzFr8ns0jmf_uBNKxT6u6w4Wo,68
|
|
2
2
|
pyznuny/ticket/__init__.py,sha256=uaGAnpyrTyhoevoVqdPTslcPuKAnmuQP1o7LmCvjXaY,68
|
|
3
|
-
pyznuny/ticket/client.py,sha256=
|
|
3
|
+
pyznuny/ticket/client.py,sha256=WgPPs6Sy2Xa1_vCBdvldLCWxagaddp1TlSSli2VAbFM,9033
|
|
4
4
|
pyznuny/ticket/endpoints.py,sha256=ArLl_BnUnZAQaWOA-T9EnTQHF1vl1XUG2kCgxlzr7vc,4444
|
|
5
5
|
pyznuny/ticket/exceptions.py,sha256=0pK5I0TjF_yR19eUWITGd0DryG1BrD_3ggA1YXbmPxI,563
|
|
6
6
|
pyznuny/ticket/models.py,sha256=oLn3asm3cDvRvi4LfR5HOKPsyP7tG-y7d7stD-QnNjc,4691
|
|
7
7
|
pyznuny/ticket/routes.py,sha256=54cr08Z2NM9JwWCkY47E1Kj94Uen9d1PJXrJ24mb2nM,2514
|
|
8
|
-
pyznuny-0.0.
|
|
9
|
-
pyznuny-0.0.
|
|
10
|
-
pyznuny-0.0.
|
|
11
|
-
pyznuny-0.0.
|
|
8
|
+
pyznuny-0.0.4.dist-info/METADATA,sha256=kb8hrELFud7M2GrRHkjN1vyLCuLOsTKF95KLlo4psz4,544
|
|
9
|
+
pyznuny-0.0.4.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
10
|
+
pyznuny-0.0.4.dist-info/top_level.txt,sha256=ki9uLRbo2oQCeiEaaYUcnYMj1mD_dkIhQroMCdJJXmk,8
|
|
11
|
+
pyznuny-0.0.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|