Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API improvements for use by client code #70

Merged
merged 3 commits into from
Jul 6, 2017

Conversation

asmodehn
Copy link
Contributor

@asmodehn asmodehn commented Jul 3, 2017

These just add useful API details, so there should be no backward compatibility issues...

@@ -55,7 +55,12 @@
from . srvs import SrvSpec

class MsgNotFound(Exception):
pass

def __init__(self, message, base_type, package, search_path):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Existing code might use the constructor of this class with a single message argument. That needs to continue to work. Therefore please make the new arguments optional.

self.base_type = base_type
self.package = package
self.search_path = search_path
super(MsgNotFound, self).__init__(message)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please move the super call to the top of the function.

@dirk-thomas
Copy link
Member

Thanks!

@dirk-thomas dirk-thomas merged commit a5812b0 into ros:indigo-devel Jul 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants