python-terminusgps 40.1.2__py3-none-any.whl → 40.1.3__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.
Potentially problematic release.
This version of python-terminusgps might be problematic. Click here for more details.
- {python_terminusgps-40.1.2.dist-info → python_terminusgps-40.1.3.dist-info}/METADATA +1 -1
- {python_terminusgps-40.1.2.dist-info → python_terminusgps-40.1.3.dist-info}/RECORD +5 -5
- terminusgps/wialon/session.py +14 -4
- {python_terminusgps-40.1.2.dist-info → python_terminusgps-40.1.3.dist-info}/WHEEL +0 -0
- {python_terminusgps-40.1.2.dist-info → python_terminusgps-40.1.3.dist-info}/licenses/COPYING +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-terminusgps
|
|
3
|
-
Version: 40.1.
|
|
3
|
+
Version: 40.1.3
|
|
4
4
|
Summary: Provides abstractions/utilities for working with Wialon API, Authorize.NET API, AWS API, and more.
|
|
5
5
|
Project-URL: Documentation, https://docs.terminusgps.com
|
|
6
6
|
Project-URL: Repository, https://github.com/terminusgps/python-terminusgps
|
|
@@ -24,7 +24,7 @@ terminusgps/wialon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
|
|
|
24
24
|
terminusgps/wialon/constants.py,sha256=05pLc_0S-x0tT87cQcxOmr8plesjOQxoXfUdjIHwI90,7732
|
|
25
25
|
terminusgps/wialon/flags.py,sha256=M50EdhxQ8IMnJnU0mrHK7-h8Asc6tvNiTOOfd1dBW6A,12815
|
|
26
26
|
terminusgps/wialon/renderer.py,sha256=ubmaLjdJyksO2qiWHbIBvYeDqlFya2br7oJYsdfoyV8,7046
|
|
27
|
-
terminusgps/wialon/session.py,sha256=
|
|
27
|
+
terminusgps/wialon/session.py,sha256=jQbPmQy6z7ghhgflRemybn8_uoCnCJzuTcbovLHFpI4,5795
|
|
28
28
|
terminusgps/wialon/utils.py,sha256=bSptHwLqkYr-NUE5dflEKjGyQCOF1XGeurliKZ6GHDw,11606
|
|
29
29
|
terminusgps/wialon/validators.py,sha256=o5__H9HHnGYth8QAKErJG5rEub7FnT8ue0S3IQ8b67o,4232
|
|
30
30
|
terminusgps/wialon/items/__init__.py,sha256=3BVthghekMvhMQSzQgBMlD_phxmKSmp3Zvmo-z0O8Bs,211
|
|
@@ -35,7 +35,7 @@ terminusgps/wialon/items/route.py,sha256=2dEUK9o8nwutPE03W-5GUcZrjGvbwLoExVnFV9L
|
|
|
35
35
|
terminusgps/wialon/items/unit.py,sha256=kee7dwpvjxbfDuRFzqbhKjLWjCN9iAimkjTyMilqKek,12124
|
|
36
36
|
terminusgps/wialon/items/unit_group.py,sha256=HhYMZ9b7UATXeEgHkXN9r5-M_w82fabjDYADCUwBtxQ,4442
|
|
37
37
|
terminusgps/wialon/items/user.py,sha256=pR6OTrm6f7Zo0J8eLvKtWVsdhGi430OxMsMMthGh8YE,5382
|
|
38
|
-
python_terminusgps-40.1.
|
|
39
|
-
python_terminusgps-40.1.
|
|
40
|
-
python_terminusgps-40.1.
|
|
41
|
-
python_terminusgps-40.1.
|
|
38
|
+
python_terminusgps-40.1.3.dist-info/METADATA,sha256=6HQCo2d8JP_dlnOKXsp636ZC68eJQ4n5qd6kIrrurZg,1036
|
|
39
|
+
python_terminusgps-40.1.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
40
|
+
python_terminusgps-40.1.3.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
41
|
+
python_terminusgps-40.1.3.dist-info/RECORD,,
|
terminusgps/wialon/session.py
CHANGED
|
@@ -4,13 +4,23 @@ import typing
|
|
|
4
4
|
import wialon.api
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
class WialonAPIError(Exception):
|
|
8
|
+
def __init__(self, message, *args, **kwargs) -> None:
|
|
9
|
+
self.message = message
|
|
10
|
+
self._code = int(message._code)
|
|
11
|
+
super().__init__(message, *args, **kwargs)
|
|
12
|
+
|
|
13
|
+
@property
|
|
14
|
+
def code(self) -> int:
|
|
15
|
+
return self._code
|
|
16
|
+
|
|
17
|
+
|
|
7
18
|
class Wialon(wialon.api.Wialon):
|
|
8
|
-
def call(self,
|
|
19
|
+
def call(self, *argc, **kwargs) -> dict[str, typing.Any]:
|
|
9
20
|
try:
|
|
10
|
-
return super().call(
|
|
21
|
+
return super().call(*argc, **kwargs)
|
|
11
22
|
except wialon.api.WialonError as e:
|
|
12
|
-
|
|
13
|
-
return {}
|
|
23
|
+
raise WialonAPIError(e)
|
|
14
24
|
|
|
15
25
|
|
|
16
26
|
class WialonSession:
|
|
File without changes
|
{python_terminusgps-40.1.2.dist-info → python_terminusgps-40.1.3.dist-info}/licenses/COPYING
RENAMED
|
File without changes
|