Skip to content

Commit

Permalink
Fix error "s is not defined" (reopening #2320 again) (#2328)
Browse files Browse the repository at this point in the history
* Fix error "s is not defined" (reopening  Refs #2320 again)

* Update clients/rospy/src/rospy/topics.py with suggestion

Co-authored-by: Martin Pecka <[email protected]>

---------

Co-authored-by: Martin Pecka <[email protected]>
  • Loading branch information
vineet131 and peci1 authored Apr 20, 2023
1 parent 13dc820 commit 030e132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/rospy/src/rospy/topics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,7 @@ def get_impl(self, reg_type, resolved_name):
elif reg_type == Registration.SUB:
rmap = self.subs
else:
raise TypeError("invalid reg_type: %s"%s)
raise TypeError("invalid reg_type: %s"%(reg_type,))
return rmap.get(resolved_name, None)

def acquire_impl(self, reg_type, resolved_name, data_class):
Expand Down

0 comments on commit 030e132

Please sign in to comment.