appmesh 0.3.4__py3-none-any.whl → 0.3.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.
appmesh/appmesh_client.py CHANGED
@@ -27,15 +27,11 @@ _SSL_CA_PEM_FILE = "/opt/appmesh/ssl/ca.pem"
27
27
 
28
28
 
29
29
  def _get_str_item(data: dict, key):
30
- if not isinstance(data[key], str):
31
- raise Exception("Invalid input for string value: %s" % key)
32
- return data[key] if (data and key in data and data[key]) else None
30
+ return data[key] if (data and key in data and data[key] and isinstance(data[key], str)) else None
33
31
 
34
32
 
35
33
  def _get_int_item(data: dict, key):
36
- if not isinstance(data[key], int):
37
- raise Exception("Invalid input for int value: %s" % key)
38
- return int(data[key]) if (data and key in data and data[key]) else None
34
+ return int(data[key]) if (data and key in data and data[key] and isinstance(data[key], int)) else None
39
35
 
40
36
 
41
37
  def _get_bool_item(data: dict, key):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: appmesh
3
- Version: 0.3.4
3
+ Version: 0.3.5
4
4
  Summary: Client SDK for App Mesh
5
5
  Home-page: https://github.com/laoshanxi/app-mesh
6
6
  Author: laoshanxi
@@ -0,0 +1,6 @@
1
+ appmesh/__init__.py,sha256=xRdXeFHEieRauuJZElbEBASgXG0ZzU1a5_0isAhM7Gw,11
2
+ appmesh/appmesh_client.py,sha256=P1qrjDQrAqfYNrM73xywOiD8JH8dxZeWEefIdSpZ32s,49828
3
+ appmesh-0.3.5.dist-info/METADATA,sha256=hhv7ry5N4MGmA5-sEhyKF2QrSV5eJswElCnujqNx75I,10620
4
+ appmesh-0.3.5.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
5
+ appmesh-0.3.5.dist-info/top_level.txt,sha256=-y0MNQOGJxUzLdHZ6E_Rfv5_LNCkV-GTmOBME_b6pg8,8
6
+ appmesh-0.3.5.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- appmesh/__init__.py,sha256=xRdXeFHEieRauuJZElbEBASgXG0ZzU1a5_0isAhM7Gw,11
2
- appmesh/appmesh_client.py,sha256=blrM-SmLea2ynjOAn-XH9glVfWHJs41kmCT_Hprz1og,49977
3
- appmesh-0.3.4.dist-info/METADATA,sha256=mzdakB9D6kYGyZtYk5h_oQmUyy4Pq3BRi_qrcjgRRGU,10620
4
- appmesh-0.3.4.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
5
- appmesh-0.3.4.dist-info/top_level.txt,sha256=-y0MNQOGJxUzLdHZ6E_Rfv5_LNCkV-GTmOBME_b6pg8,8
6
- appmesh-0.3.4.dist-info/RECORD,,