MCPcopy Create free account
hub / github.com/1Panel-dev/MaxKB / get_write_error_context

Method get_write_error_context

apps/application/flow/i_step_node.py:346–356  ·  view source on GitHub ↗
(self, e)

Source from the content-addressed store, hash-verified

344 return self.workflow_manage.get_params_serializer_class()
345
346 def get_write_error_context(self, e):
347 self.status = 500
348 self.answer_text = str(e)
349 self.err_message = str(e)
350 current_time = time.time()
351 self.context['run_time'] = current_time - (self.context.get('start_time') or current_time)
352
353 def write_error_context(answer, status=200):
354 pass
355
356 return write_error_context
357
358 def run(self) -> NodeResult:
359 """

Callers 3

hand_node_resultMethod · 0.80
hand_node_resultMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected