Skip to content

Commit

Permalink
Fix some errors in some probably not frequented code paths (#1415)
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomebytes authored and dirk-thomas committed Jun 6, 2018
1 parent 7c680e3 commit c34ad04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clients/rospy/src/rospy/impl/tcpros_pubsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def create_transport(self, resolved_name, pub_uri, protocol_params):
if type(protocol_params) != list or len(protocol_params) != 3:
return 0, "ERROR: invalid TCPROS parameters", 0
if protocol_params[0] != TCPROS:
return 0, "INTERNAL ERROR: protocol id is not TCPROS: %s"%id, 0
return 0, "INTERNAL ERROR: protocol id is not TCPROS: %s"%protocol_params[0], 0
id, dest_addr, dest_port = protocol_params

sub = rospy.impl.registration.get_topic_manager().get_subscriber_impl(resolved_name)
Expand Down
2 changes: 1 addition & 1 deletion clients/rospy/src/rospy/names.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
is_global, is_private
import rosgraph.names

from rospy.exceptions import ROSException
from rospy.exceptions import ROSException, ROSInitException
from rospy.impl.validators import ParameterInvalid

TOPIC_ANYTYPE = ANYTYPE #indicates that a subscriber will connect any datatype given to it
Expand Down

0 comments on commit c34ad04

Please sign in to comment.