Spaces:
Running
Running
Add LYNXKITE_SUPPRESS_OP_ERRORS instead of LYNXKITE_LOG_OP_ERRORS.
Browse files
lynxkite-graph-analytics/src/lynxkite_graph_analytics/core.py
CHANGED
@@ -214,7 +214,7 @@ async def _execute_node(node, ws, catalog, outputs):
|
|
214 |
x = Bundle.from_df(x)
|
215 |
inputs.append(x)
|
216 |
except Exception as e:
|
217 |
-
if os.environ.get("
|
218 |
traceback.print_exc()
|
219 |
node.publish_error(e)
|
220 |
return
|
@@ -223,7 +223,7 @@ async def _execute_node(node, ws, catalog, outputs):
|
|
223 |
result = op(*inputs, **params)
|
224 |
result.output = await await_if_needed(result.output)
|
225 |
except Exception as e:
|
226 |
-
if os.environ.get("
|
227 |
traceback.print_exc()
|
228 |
result = ops.Result(error=str(e))
|
229 |
result.input_metadata = [_get_metadata(i) for i in inputs]
|
|
|
214 |
x = Bundle.from_df(x)
|
215 |
inputs.append(x)
|
216 |
except Exception as e:
|
217 |
+
if not os.environ.get("LYNXKITE_SUPPRESS_OP_ERRORS"):
|
218 |
traceback.print_exc()
|
219 |
node.publish_error(e)
|
220 |
return
|
|
|
223 |
result = op(*inputs, **params)
|
224 |
result.output = await await_if_needed(result.output)
|
225 |
except Exception as e:
|
226 |
+
if not os.environ.get("LYNXKITE_SUPPRESS_OP_ERRORS"):
|
227 |
traceback.print_exc()
|
228 |
result = ops.Result(error=str(e))
|
229 |
result.input_metadata = [_get_metadata(i) for i in inputs]
|