Skip to content

Commit

Permalink
Don't overwrite kwargs in activities json
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Mar 7, 2024
1 parent 4d8d25e commit d99c184
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions omeroweb/webclient/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3851,16 +3851,16 @@ def activities(request, conn=None, **kwargs):
try:
# we can only retrieve this ONCE - must save results
results = proc.getResults(0, conn.SERVICE_OPTS)
kwargs = {
update_kwargs = {
"status": "finished",
"returncode": cb.returncode,
}
if cb.returncode != 0:
kwargs["Message"] = (
update_kwargs["Message"] = (
f"Script exited with failure."
f" (returncode={cb.returncode})"
)
update_callback(request, cbString, **kwargs)
update_callback(request, cbString, **update_kwargs)
new_results.append(cbString)
except Exception:
update_callback(
Expand Down

0 comments on commit d99c184

Please sign in to comment.