diff --git a/AppImage/scripts/flask_server.py b/AppImage/scripts/flask_server.py index fc5e1ee..022e698 100644 --- a/AppImage/scripts/flask_server.py +++ b/AppImage/scripts/flask_server.py @@ -5289,8 +5289,8 @@ def api_vm_config_update(vmid): 'error': config_result.stderr }), 500 else: - return jsonify({'error': 'Failed to get VM - except Exception as e: + return jsonify({'error': 'Failed to get VM details'}), 500 + except Exception as e: print(f"Error updating VM configuration: {e}") return jsonify({'error': str(e)}), 500 @@ -5311,4 +5311,4 @@ if __name__ == '__main__': # Print only essential information print("API endpoints available at: /api/system, /api/system-info, /api/storage, /api/proxmox-storage, /api/network, /api/vms, /api/logs, /api/health, /api/hardware, /api/prometheus, /api/node/metrics") - app.run(host='0.0.0.0', port=8008, debug=False) + app.run(host='0.0.0.0', port=8008, debug=False) \ No newline at end of file