MCPcopy Index your code
hub / github.com/pathwaycom/pathway / handle_error

Function handle_error

python/pathway/internals/api.py:203–209  ·  view source on GitHub ↗
(row: DataRow, msg: str)

Source from the content-addressed store, hash-verified

201 updates.sort(key=lambda row: (row.time, row.diff))
202
203 def handle_error(row: DataRow, msg: str):
204 if terminate_on_error:
205 raise KeyError(msg)
206 else:
207 warnings.warn(msg)
208 t: tuple[Value, ...] = (ERROR,) * len(row.values)
209 state[row.key] = t
210
211 for row in updates:
212 if row.diff == 1:

Callers 1

squash_updatesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected