err response
This commit is contained in:
@@ -454,6 +454,8 @@ class MatchesWebApp:
|
|||||||
return Response("build already running", status=409)
|
return Response("build already running", status=409)
|
||||||
try:
|
try:
|
||||||
result = self._mover.build_matches_only()
|
result = self._mover.build_matches_only()
|
||||||
|
except Exception as exc:
|
||||||
|
return Response(f"build failed: {exc}", status=500)
|
||||||
finally:
|
finally:
|
||||||
self._build_lock.release()
|
self._build_lock.release()
|
||||||
return jsonify(result)
|
return jsonify(result)
|
||||||
|
|||||||
Reference in New Issue
Block a user