Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

Fix error handling for Topic constructor - #1701

Merged
dirk-thomas merged 1 commit into
ros:melodic-develfrom
scooler:melodic-devel
Apr 23, 2019
Merged

dirk-thomas merged 1 commit into
ros:melodic-develfrom
scooler:melodic-devel

Conversation

@scooler

@scooler scooler commented Apr 23, 2019

Copy link
Copy Markdown
Contributor

There is no s variable in scope - and we clearly wanna display reg_type

To reproduce:

rospy.topics.Topic('/topic', rospy.AnyMsg, 'aa')

I get

raise TypeError("invalid reg_type: %s"%s)
NameError: global name 's' is not defined

There is no s variable in scope - and we clearly wanna display
reg_type
@dirk-thomas

Copy link
Copy Markdown
Member

Thanks for the fix.

@dirk-thomas
dirk-thomas merged commit 309753f into ros:melodic-devel Apr 23, 2019
dirk-thomas pushed a commit that referenced this pull request Aug 4, 2020
There is no s variable in scope - and we clearly wanna display
reg_type
dirk-thomas pushed a commit that referenced this pull request Aug 4, 2020
There is no s variable in scope - and we clearly wanna display
reg_type
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants