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."""