File tree Expand file tree Collapse file tree
finecode/workspace_manager/runner Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -211,7 +211,10 @@ async def update_runners(ws_context: context.WorkspaceContext) -> None:
211211 new_runners_tasks .append (runner_task )
212212 except ExceptionGroup as eg :
213213 for exception in eg .exceptions :
214- logger .exception (exception )
214+ if isinstance (exception , runner_client .BaseRunnerRequestException ):
215+ logger .error (exception .message )
216+ else :
217+ logger .exception (exception )
215218 raise RunnerFailedToStart ("Failed to start runner" )
216219
217220 extension_runners += [
@@ -234,7 +237,10 @@ async def update_runners(ws_context: context.WorkspaceContext) -> None:
234237 )
235238 except ExceptionGroup as eg :
236239 for exception in eg .exceptions :
237- logger .exception (exception )
240+ if isinstance (exception , runner_client .BaseRunnerRequestException ):
241+ logger .error (exception .message )
242+ else :
243+ logger .exception (exception )
238244 raise RunnerFailedToStart ("Failed to initialize runner" )
239245
240246
You can’t perform that action at this time.
0 commit comments