pywebexec 1.1.9__tar.gz → 1.1.10__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 (27) hide show
  1. {pywebexec-1.1.9/pywebexec.egg-info → pywebexec-1.1.10}/PKG-INFO +1 -1
  2. {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/pywebexec.py +5 -2
  3. {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/version.py +2 -2
  4. {pywebexec-1.1.9 → pywebexec-1.1.10/pywebexec.egg-info}/PKG-INFO +1 -1
  5. {pywebexec-1.1.9 → pywebexec-1.1.10}/.github/workflows/python-publish.yml +0 -0
  6. {pywebexec-1.1.9 → pywebexec-1.1.10}/.gitignore +0 -0
  7. {pywebexec-1.1.9 → pywebexec-1.1.10}/LICENSE +0 -0
  8. {pywebexec-1.1.9 → pywebexec-1.1.10}/README.md +0 -0
  9. {pywebexec-1.1.9 → pywebexec-1.1.10}/pyproject.toml +0 -0
  10. {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/__init__.py +0 -0
  11. {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/static/css/style.css +0 -0
  12. {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/static/images/aborted.svg +0 -0
  13. {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/static/images/copy.svg +0 -0
  14. {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/static/images/copy_ok.svg +0 -0
  15. {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/static/images/failed.svg +0 -0
  16. {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/static/images/favicon.svg +0 -0
  17. {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/static/images/running.gif +0 -0
  18. {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/static/images/success.svg +0 -0
  19. {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/static/js/script.js +0 -0
  20. {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/templates/__init__.py +0 -0
  21. {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/templates/index.html +0 -0
  22. {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec.egg-info/SOURCES.txt +0 -0
  23. {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec.egg-info/dependency_links.txt +0 -0
  24. {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec.egg-info/entry_points.txt +0 -0
  25. {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec.egg-info/requires.txt +0 -0
  26. {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec.egg-info/top_level.txt +0 -0
  27. {pywebexec-1.1.9 → pywebexec-1.1.10}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pywebexec
3
- Version: 1.1.9
3
+ Version: 1.1.10
4
4
  Summary: Simple Python HTTP Exec Server
5
5
  Home-page: https://github.com/joknarf/pywebexec
6
6
  Author: Franck Jouvanceau
@@ -342,7 +342,10 @@ def read_command_status(command_id):
342
342
  if not os.path.exists(status_file_path):
343
343
  return None
344
344
  with open(status_file_path, 'r') as f:
345
- status_data = json.load(f)
345
+ try:
346
+ status_data = json.load(f)
347
+ except json.JSONDecodeError:
348
+ return None
346
349
 
347
350
  # Cache the status if it is not "running"
348
351
  if status_data['status'] != 'running':
@@ -520,7 +523,7 @@ def list_commands():
520
523
  params = shlex.join(status['params'])
521
524
  except AttributeError:
522
525
  params = " ".join([shlex.quote(p) if " " in p else p for p in status['params']])
523
- command = status['command'] + ' ' + params
526
+ command = status.get('command', '-') + ' ' + params
524
527
  commands.append({
525
528
  'command_id': command_id,
526
529
  'status': status['status'],
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.1.9'
16
- __version_tuple__ = version_tuple = (1, 1, 9)
15
+ __version__ = version = '1.1.10'
16
+ __version_tuple__ = version_tuple = (1, 1, 10)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pywebexec
3
- Version: 1.1.9
3
+ Version: 1.1.10
4
4
  Summary: Simple Python HTTP Exec Server
5
5
  Home-page: https://github.com/joknarf/pywebexec
6
6
  Author: Franck Jouvanceau
File without changes
File without changes
File without changes
File without changes
File without changes