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

Fix pylint warning: super-init-not-called #156

Merged
merged 1 commit into from
Dec 27, 2016

Conversation

Echelon9
Copy link
Contributor

************* Module antfs_cli.utilities
W: 40, 4: __init__ method from base class 'Exception' is not called (super-init-not-called)

Global evaluation
-----------------
Your code has been rated at 6.77/10 (previous run: 6.72/10, +0.05)

@@ -38,6 +38,7 @@ def makedirs_if_not_exists(path):

class XDGError(Exception):
def __init__(self, message):
super(XDGError, self).__init__(message)
self.message = message
Copy link
Owner

Choose a reason for hiding this comment

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

This line can be removed when the super init is called, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Change made.
As the message is just being passed up to the super class and not actually used in XDGError(), I think this is fine.

************* Module antfs_cli.utilities
W: 40, 4: __init__ method from base class 'Exception' is not called (super-init-not-called)

Global evaluation
-----------------
Your code has been rated at 6.77/10 (previous run: 6.72/10, +0.05)
@Echelon9 Echelon9 force-pushed the fix/pylint-exception-super-init branch from cfe325c to 125c350 Compare December 27, 2016 00:56
@coveralls
Copy link

coveralls commented Dec 27, 2016

Coverage Status

Coverage remained the same at 6.272% when pulling 125c350 on Echelon9:fix/pylint-exception-super-init into 5556dd3 on Tigge:master.

@Tigge Tigge merged commit 51d1991 into Tigge:master Dec 27, 2016
@Echelon9 Echelon9 deleted the fix/pylint-exception-super-init branch December 27, 2016 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants