Skip to content

Commit 57bf1ef

Browse files
Fix AlgorithmRuntimeError
1 parent 86b8bcd commit 57bf1ef

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/imaging_server_kit/core/algorithm.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ def _stream(
448448
try:
449449
payload = self._run_algorithm_func(**algo_params)
450450
except Exception as e:
451-
raise AlgorithmRuntimeError(algorithm, e)
451+
raise AlgorithmRuntimeError(algorithm=algorithm, error=e)
452452
yield _parse_user_func_output(payload)
453453

454454

‎src/imaging_server_kit/core/runner.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def run(
132132
# Raise if tileable is set to False and the algo is attempted to be run in tiles
133133
if tiled and not self.is_tileable(algorithm):
134134
raise AlgorithmRuntimeError(
135-
algorithm,
135+
algorithm=algorithm,
136136
message="Algorithm cannot be run in tiled mode.",
137137
)
138138

0 commit comments

Comments
 (0)