Commit b621d765 authored by Andrea Del Prete's avatar Andrea Del Prete
Browse files

[minor] Remove multi-line indentation and catch rospy.exceptions.TransportTerminated

parent 89b399bb
......@@ -45,7 +45,7 @@ from spyderlib.utils.dochelpers import getobjdir
class SpyderConsoleWidget(InternalShell):
_multi_line_char = ':'
_multi_line_indent = ' '
_multi_line_indent = ''
_prompt = ('>>> ', '... ') # prompt for single and multi line
def __init__(self, context=None):
......@@ -171,7 +171,7 @@ class SpyderConsoleWidget(InternalShell):
'run_command', dynamic_graph_bridge.srv.RunCommand, True)
response = self._client(str(source))
return response;
except rospy.ServiceException, e:
except (rospy.ServiceException, rospy.exceptions.TransportTerminated) as e:
print("Connection to remote server lost. Reconnecting...")
self._client = rospy.ServiceProxy(
'run_command', dynamic_graph_bridge_msgs.srv.RunCommand, True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment