Skip to content

Commit

Permalink
[bugfix] fix KeyError: 'context' in reconstruct_args_kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
khoaguin committed May 28, 2024
1 parent 009123e commit cd44055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/syft/src/syft/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def reconstruct_args_kwargs(
else:
raise Exception(f"Missing {param_key} not in kwargs.")

if "context":
if "context" in kwargs:
final_kwargs["context"] = kwargs["context"]

return (args, final_kwargs)
Expand Down

0 comments on commit cd44055

Please sign in to comment.