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

Common Exception pattern is not handled #129

Open
liam-ly opened this issue Sep 3, 2021 · 0 comments
Open

Common Exception pattern is not handled #129

liam-ly opened this issue Sep 3, 2021 · 0 comments

Comments

@liam-ly
Copy link

liam-ly commented Sep 3, 2021

class MyApplicationException(Exception):
    """My custom exception."""

def foo():
    raise MyApplicationException()

is minified into

class MyApplicationException(Exception):
def foo():
 raise MyApplicationException()

I can work around this using pass, but pylint by default will mark this as a lint: pylint-dev/pylint#2208

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

No branches or pull requests

1 participant