Skip to content

Commit

Permalink
Fix error handling for Topic constructor (#1701)
Browse files Browse the repository at this point in the history
There is no s variable in scope - and we clearly wanna display
reg_type
  • Loading branch information
scooler authored and dirk-thomas committed Apr 23, 2019
1 parent 9e49232 commit 309753f
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 @@ -1264,7 +1264,7 @@ def acquire_impl(self, reg_type, resolved_name, data_class):
rmap = self.subs
impl_class = _SubscriberImpl
else:
raise TypeError("invalid reg_type: %s"%s)
raise TypeError("invalid reg_type: %s"%reg_type)
with self.lock:
impl = rmap.get(resolved_name, None)
if not impl:
Expand Down

0 comments on commit 309753f

Please sign in to comment.