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

ROSBagException should call the base constructor #1210

Closed
wants to merge 1 commit into from
Closed

ROSBagException should call the base constructor #1210

wants to merge 1 commit into from

Conversation

lukehansen
Copy link

@@ -75,24 +75,19 @@ class ROSBagException(Exception):
"""
Base class for exceptions in rosbag.
"""
def __init__(self, value):
self.value = value
Copy link
Member

@dirk-thomas dirk-thomas Oct 31, 2017

Choose a reason for hiding this comment

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

Removing value will effectively change the public API of this exception. Therefore I don't think this PR can be applied as-is since it would break compatibility with existing code.

Maybe the constructor should be kept and invoke the parent constructor explicitly? If the parent constructor is being called with value the custom __str__ implementation might still be obsolete.

dirk-thomas pushed a commit that referenced this pull request Apr 1, 2019
* test_rosbag/test_bag.py: test, if rosbag exception can be pickled

* rosbag/bag.py: rosbag exceptions can now be unpickled

* pep8
@dirk-thomas
Copy link
Member

Superseded by #1652.

@dirk-thomas dirk-thomas closed this Apr 1, 2019
tahsinkose pushed a commit to tahsinkose/ros_comm that referenced this pull request Apr 15, 2019
* test_rosbag/test_bag.py: test, if rosbag exception can be pickled

* rosbag/bag.py: rosbag exceptions can now be unpickled

* pep8
dirk-thomas pushed a commit that referenced this pull request Aug 4, 2020
* test_rosbag/test_bag.py: test, if rosbag exception can be pickled

* rosbag/bag.py: rosbag exceptions can now be unpickled

* pep8
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