fix missing except block

This commit is contained in:
2026-01-21 12:24:59 +01:00
parent b83f2e6e38
commit 4534857161

View File

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