Skip to content

Commit 24a31e6

Browse files
committed
Add new line to output messages
1 parent 525fb44 commit 24a31e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ipynao/nao_robot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ async def async_call_service(self, method_name, *args, **kwargs):
5454

5555
response = self.widget.response[request_id]['data']
5656
del self.widget.response[request_id]
57-
57+
5858
return response
5959

6060

@@ -109,10 +109,10 @@ def get_value_change(change):
109109

110110
if (response['isError']):
111111
future.set_exception(Exception(response['data']))
112-
output.append_stderr(response['data'])
112+
output.append_stderr(str(response['data']) + '\n')
113113
else:
114114
future.set_result(response['data'])
115-
output.append_stdout(response['data'])
115+
output.append_stdout(str(response['data']) + '\n')
116116

117117
else:
118118
future.set_result(change)

0 commit comments

Comments
 (0)