Skip to content

Commit

Permalink
Merge pull request #8302 from OpenMined/issue-876
Browse files Browse the repository at this point in the history
Getting 'Pointer: None' when code request is approved
  • Loading branch information
rasswanth-s authored Dec 5, 2023
2 parents 0def89a + 0cc278c commit 0c29042
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/syft/src/syft/service/code/user_code_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,8 @@ def _call(

if isinstance(result, TwinObject):
return Ok(result.mock)
elif result.is_mock:
return Ok(result)
elif result.syft_action_data_type is Err:
# result contains the error but the request was handled correctly
return result.syft_action_data
Expand Down

0 comments on commit 0c29042

Please sign in to comment.