pyznuny 0.0.2__tar.gz → 0.0.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyznuny
3
- Version: 0.0.2
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,6 +1,6 @@
1
1
  [project]
2
2
  name = "pyznuny"
3
- version = "0.0.2"
3
+ version = "0.0.4"
4
4
  description = "A Python client for interacting with the Znuny ticketing system API."
5
5
  authors = [
6
6
  { name = "Junior Rosa", email = "jr.dasrosas@gmail.com" },
@@ -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.2
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
File without changes
File without changes
File without changes
File without changes