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.
- {pywebexec-1.1.9/pywebexec.egg-info → pywebexec-1.1.10}/PKG-INFO +1 -1
- {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/pywebexec.py +5 -2
- {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/version.py +2 -2
- {pywebexec-1.1.9 → pywebexec-1.1.10/pywebexec.egg-info}/PKG-INFO +1 -1
- {pywebexec-1.1.9 → pywebexec-1.1.10}/.github/workflows/python-publish.yml +0 -0
- {pywebexec-1.1.9 → pywebexec-1.1.10}/.gitignore +0 -0
- {pywebexec-1.1.9 → pywebexec-1.1.10}/LICENSE +0 -0
- {pywebexec-1.1.9 → pywebexec-1.1.10}/README.md +0 -0
- {pywebexec-1.1.9 → pywebexec-1.1.10}/pyproject.toml +0 -0
- {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/__init__.py +0 -0
- {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/static/css/style.css +0 -0
- {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/static/images/aborted.svg +0 -0
- {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/static/images/copy.svg +0 -0
- {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/static/images/copy_ok.svg +0 -0
- {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/static/images/failed.svg +0 -0
- {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/static/images/favicon.svg +0 -0
- {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/static/images/running.gif +0 -0
- {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/static/images/success.svg +0 -0
- {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/static/js/script.js +0 -0
- {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/templates/__init__.py +0 -0
- {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec/templates/index.html +0 -0
- {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec.egg-info/SOURCES.txt +0 -0
- {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec.egg-info/dependency_links.txt +0 -0
- {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec.egg-info/entry_points.txt +0 -0
- {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec.egg-info/requires.txt +0 -0
- {pywebexec-1.1.9 → pywebexec-1.1.10}/pywebexec.egg-info/top_level.txt +0 -0
- {pywebexec-1.1.9 → pywebexec-1.1.10}/setup.cfg +0 -0
|
@@ -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
|
-
|
|
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
|
|
526
|
+
command = status.get('command', '-') + ' ' + params
|
|
524
527
|
commands.append({
|
|
525
528
|
'command_id': command_id,
|
|
526
529
|
'status': status['status'],
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|