Skip to content

Commit

Permalink
make sure response is returned for add_to_workspace calls (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjrosengrant authored Sep 21, 2023
1 parent 0ff5e4a commit daad940
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nanome/beta/nanome_sdk/session/session_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ async def add_to_workspace(self, complex_list):
message_type = Messages.add_to_workspace
expects_response = True
args = complex_list
self._send_message(message_type, args, expects_response)
request_id = self._send_message(message_type, args, expects_response)
result = await self._process_payload(request_id)
return result

async def remove_from_workspace(self, complex_list):
"""By removing all atoms from complexes, we can remove them from the workspace."""
Expand Down

0 comments on commit daad940

Please sign in to comment.