ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
Raise a typed error for bad deploy settings
Juan Denis87be6be8faa3
diff --git a/backend/app/api/apps.py b/backend/app/api/apps.pyindex fa3de236..371b5219 100644--- a/backend/app/api/apps.py+++ b/backend/app/api/apps.py@@ -1293,10 +1293,11 @@ def update_app(app_id):# Validate before anything is assigned, so a bad setting leaves the app# untouched rather than half-updated in the session.if 'deploy_settings' in data:+ from app.exceptions import ValidationErrorfrom app.services import deploy_settings_, error = deploy_settings.validate(data['deploy_settings'])if error:- return jsonify({'error': error}), 400+ raise ValidationError(error)if 'name' in data:app.name = data['name']