From 4534857161fc3a9cbe7ae318b91b01dd2bdca6506db46f9ba22a306e082a2c18 Mon Sep 17 00:00:00 2001 From: mstoeck3 Date: Wed, 21 Jan 2026 12:24:59 +0100 Subject: [PATCH] fix missing except block --- web_app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web_app.py b/web_app.py index 966f481..6049d73 100644 --- a/web_app.py +++ b/web_app.py @@ -832,6 +832,11 @@ def api_create_from_modelfile(): 'job_id': job_id, 'message': 'Installation started' }) + + except Exception as e: + return jsonify({'error': str(e)}), 500 + + @app.route('/api/install/modelfile', methods=['POST']) def api_install_from_modelfile(): """Start installation of a model from an existing Modelfile as background job."""