fix missing except block
This commit is contained in:
@@ -832,6 +832,11 @@ def api_create_from_modelfile():
|
|||||||
'job_id': job_id,
|
'job_id': job_id,
|
||||||
'message': 'Installation started'
|
'message': 'Installation started'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
except Exception as e:
|
||||||
|
return jsonify({'error': str(e)}), 500
|
||||||
|
|
||||||
|
|
||||||
@app.route('/api/install/modelfile', methods=['POST'])
|
@app.route('/api/install/modelfile', methods=['POST'])
|
||||||
def api_install_from_modelfile():
|
def api_install_from_modelfile():
|
||||||
"""Start installation of a model from an existing Modelfile as background job."""
|
"""Start installation of a model from an existing Modelfile as background job."""
|
||||||
|
|||||||
Reference in New Issue
Block a user