mcm-cli 1.3.0__tar.gz → 1.3.1__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.
Files changed (31) hide show
  1. {mcm_cli-1.3.0/mcm_cli.egg-info → mcm_cli-1.3.1}/PKG-INFO +1 -1
  2. {mcm_cli-1.3.0 → mcm_cli-1.3.1/mcm_cli.egg-info}/PKG-INFO +1 -1
  3. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/mcmcli/__main__.py +1 -1
  4. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/mcmcli/requests.py +8 -0
  5. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/setup.py +1 -1
  6. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/LICENSE +0 -0
  7. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/NOTICE +0 -0
  8. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/README.md +0 -0
  9. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/mcm_cli.egg-info/SOURCES.txt +0 -0
  10. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/mcm_cli.egg-info/dependency_links.txt +0 -0
  11. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/mcm_cli.egg-info/entry_points.txt +0 -0
  12. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/mcm_cli.egg-info/requires.txt +0 -0
  13. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/mcm_cli.egg-info/top_level.txt +0 -0
  14. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/mcmcli/__init__.py +0 -0
  15. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/mcmcli/command/account.py +0 -0
  16. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/mcmcli/command/admin.py +0 -0
  17. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/mcmcli/command/auth.py +0 -0
  18. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/mcmcli/command/config.py +0 -0
  19. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/mcmcli/command/decision.py +0 -0
  20. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/mcmcli/command/wallet.py +0 -0
  21. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/mcmcli/data/account.py +0 -0
  22. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/mcmcli/data/account_user.py +0 -0
  23. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/mcmcli/data/decision.py +0 -0
  24. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/mcmcli/data/error.py +0 -0
  25. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/mcmcli/data/item.py +0 -0
  26. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/mcmcli/data/seller.py +0 -0
  27. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/mcmcli/data/token.py +0 -0
  28. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/mcmcli/data/wallet.py +0 -0
  29. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/mcmcli/logging.py +0 -0
  30. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/setup.cfg +0 -0
  31. {mcm_cli-1.3.0 → mcm_cli-1.3.1}/tests/test_config.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mcm-cli
3
- Version: 1.3.0
3
+ Version: 1.3.1
4
4
  Summary: A command-line interface for Moloco Commerde Media
5
5
  Home-page: https://github.com/moloco-mcm/mcm-cli
6
6
  Author: Moloco MCM Team
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mcm-cli
3
- Version: 1.3.0
3
+ Version: 1.3.1
4
4
  Summary: A command-line interface for Moloco Commerde Media
5
5
  Home-page: https://github.com/moloco-mcm/mcm-cli
6
6
  Author: Moloco MCM Team
@@ -35,7 +35,7 @@ def version():
35
35
  """
36
36
  Show the tool version
37
37
  """
38
- typer.echo(f"Version: mcm-cli v1.3.0")
38
+ typer.echo(f"Version: mcm-cli v1.3.1")
39
39
 
40
40
  app.add_typer(mcmcli.command.account.app, name="account", help="Ad account management")
41
41
  app.add_typer(mcmcli.command.admin.app, name="admin", help="Platform administration")
@@ -38,6 +38,8 @@ def get(url, headers):
38
38
  try:
39
39
  res = requests.get(url, headers=headers)
40
40
  return None, json.loads(res.text)
41
+ except json.JSONDecodeError:
42
+ return Error(code=0, message=res.text), None
41
43
  except Exception as e:
42
44
  return e, None
43
45
 
@@ -46,6 +48,8 @@ def delete(url, headers):
46
48
  try:
47
49
  res = requests.delete(url, headers=headers)
48
50
  return None, json.loads(res.text)
51
+ except json.JSONDecodeError:
52
+ return Error(code=0, message=res.text), None
49
53
  except Exception as e:
50
54
  return e, None
51
55
 
@@ -54,6 +58,8 @@ def post(url, headers, payload):
54
58
  try:
55
59
  res = requests.post(url, headers=headers, json=payload)
56
60
  return None, json.loads(res.text)
61
+ except json.JSONDecodeError:
62
+ return Error(code=0, message=res.text), None
57
63
  except Exception as e:
58
64
  return e, None
59
65
 
@@ -61,6 +67,8 @@ def put(url, headers, payload):
61
67
  try:
62
68
  res = requests.put(url, headers=headers, json=payload)
63
69
  return None, json.loads(res.text)
70
+ except json.JSONDecodeError:
71
+ return Error(code=0, message=res.text), None
64
72
  except Exception as e:
65
73
  return e, None
66
74
 
@@ -18,7 +18,7 @@ from setuptools import setup, find_packages
18
18
 
19
19
  setup(
20
20
  name='mcm-cli',
21
- version='1.3.0',
21
+ version='1.3.1',
22
22
  description='A command-line interface for Moloco Commerde Media',
23
23
  long_description=open('README.md').read(),
24
24
  long_description_content_type='text/markdown',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes