python-terminusgps 25.0.0__py3-none-any.whl → 25.0.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-terminusgps
3
- Version: 25.0.0
3
+ Version: 25.0.1
4
4
  Summary: Provides abstractions/utilities for working with Wialon API, Authorize.NET API, AWS API, and more.
5
5
  Project-URL: Documentation, https://app.terminusgps.com/docs/apps/python-terminusgps/index.html
6
6
  Project-URL: Repository, https://github.com/terminusgps/python-terminusgps
@@ -23,14 +23,14 @@ terminusgps/wialon/logger.py,sha256=nUBsaLMaffSaAHGHAM6mFXDzix9hbNecVtA3INVtii8,
23
23
  terminusgps/wialon/session.py,sha256=t3d7trBQRxnXFnex73alSSD5n2LDTZQ9VAtzUKIERto,9670
24
24
  terminusgps/wialon/utils.py,sha256=Y7fo9a81w84b3N39h1AmVLS-AnC3aRT5R137hIsqCHU,6723
25
25
  terminusgps/wialon/items/__init__.py,sha256=3BVthghekMvhMQSzQgBMlD_phxmKSmp3Zvmo-z0O8Bs,211
26
- terminusgps/wialon/items/base.py,sha256=EAtzlnCvB7WTu3iX1bV1-S9TvwXc-Eez7e0X4TMiK9U,6943
26
+ terminusgps/wialon/items/base.py,sha256=nCh635XgF68YjlppbGYZeG2wah7Ic_aSc7RM2AKO4VU,7004
27
27
  terminusgps/wialon/items/resource.py,sha256=qmQKEakJa9LH5YkI9-iBDA0hsotc5ctcwdb7kZuXdfQ,14549
28
28
  terminusgps/wialon/items/retranslator.py,sha256=8q9EDc92w92MElnHIeEzH3Ra4kiPXrx4t9V5nPDZuRU,3728
29
29
  terminusgps/wialon/items/route.py,sha256=PTJx1gmT_PGz7nlSSUS2VzjYD-aAuvkEOIdIFneUSSQ,1148
30
30
  terminusgps/wialon/items/unit.py,sha256=K0kmzFEInR3dAQVtMUA6M7KNy7HlD5IKl7f7YElr2sQ,9116
31
31
  terminusgps/wialon/items/unit_group.py,sha256=Stp-WfCGbOqcnxV6FU1AKtV7KIxIwCHa0NwhNJfgRoM,5032
32
32
  terminusgps/wialon/items/user.py,sha256=INwAibQVmjNNelepQXMfDevgJqMvIjHHgEjAMLRvhB0,7082
33
- python_terminusgps-25.0.0.dist-info/METADATA,sha256=RRNrckAzXzk1PVqHehcdAQ9rKWU1B7bFxZmyrkVYslE,946
34
- python_terminusgps-25.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
35
- python_terminusgps-25.0.0.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
36
- python_terminusgps-25.0.0.dist-info/RECORD,,
33
+ python_terminusgps-25.0.1.dist-info/METADATA,sha256=euQAuccWdEFn4rPRUHTsel4R_HD39SU7yQvLiyngS2k,946
34
+ python_terminusgps-25.0.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
35
+ python_terminusgps-25.0.1.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
36
+ python_terminusgps-25.0.1.dist-info/RECORD,,
@@ -23,10 +23,12 @@ class WialonBase:
23
23
  """Retrieves and saves the latest data for the item from Wialon."""
24
24
  response = self.session.wialon_api.core_search_item(
25
25
  **{"id": str(self.id), "flags": 0x1}
26
- ).get("item", {})
27
- self.name = response.get("nm")
28
- self.hw_type = response.get("cls")
29
- self.access_lvl = response.get("uacl")
26
+ )
27
+ if response is not None:
28
+ item = response.get("item", {})
29
+ self.name = item.get("nm")
30
+ self.hw_type = item.get("cls")
31
+ self.access_lvl = item.get("uacl")
30
32
 
31
33
  @property
32
34
  def session(self) -> WialonSession: