pyznuny 0.0.2__py3-none-any.whl → 0.0.5__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,11 +1,22 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyznuny
3
- Version: 0.0.2
3
+ Version: 0.0.5
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
7
7
  Project-URL: Repository, https://github.com/Junior-Rosa/py-znuny
8
8
  Project-URL: Issues, https://github.com/Junior-Rosa/py-znuny/issues
9
+ Classifier: Development Status :: 3 - Alpha
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Programming Language :: Python
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3 :: Only
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Typing :: Typed
9
20
  Requires-Python: >=3.10
10
21
  Description-Content-Type: text/markdown
11
22
  Requires-Dist: httpx>=0.28.1
@@ -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=coEAgUKwlqBPzJNixVPFype8JoaDnhYHI7iLfy6H_PE,8941
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.2.dist-info/METADATA,sha256=5mHWMINrkqK1nXFtWHAe6iaCaA-ms6WqUZEf0cvY8Bw,544
9
- pyznuny-0.0.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
10
- pyznuny-0.0.2.dist-info/top_level.txt,sha256=ki9uLRbo2oQCeiEaaYUcnYMj1mD_dkIhQroMCdJJXmk,8
11
- pyznuny-0.0.2.dist-info/RECORD,,
8
+ pyznuny-0.0.5.dist-info/METADATA,sha256=BY475mSyPt3cmku59n9QoKI5eI42Oe6GkFa8-v6V37Q,1058
9
+ pyznuny-0.0.5.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
10
+ pyznuny-0.0.5.dist-info/top_level.txt,sha256=ki9uLRbo2oQCeiEaaYUcnYMj1mD_dkIhQroMCdJJXmk,8
11
+ pyznuny-0.0.5.dist-info/RECORD,,