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
AttributeError: 'NoneType' object has no attribute 'format' in message.py in 2.5.0 #3564
Comments
I set a breakpoint in
And it never gets called. I tried setting a breakpoint in
Under src/ I have,
|
Hey @rrauenza I'm afraid I can't reproduce it. How did you run pylint over your project? Also if you set up a breakpoint in |
It looks like it is an empty string (there's some more debug output I also added):
Where the other output was added:
|
aha -- I got a test case. I had to add
Argh, but now it does it without
I wonder if it depends on the order of the subdirectories read.
|
I have a cicd that suddenly started failing because tox started bringing in pylint 2.5.0 (I've now pinned it to < 2.5.0).
I can't share the source code externally so I'll do my best to see if I can track this down just from the stack trace. I apologize I can't provide steps to reproduce -- I hope this stack trace and the template value being None is enough to track down the cause.
It looks like in message.py, template is None.
In the TextReporter class in text.py, self._template is initialized to be None by the class and not changed, so is passed down to message.py
My pylintrc:
The text was updated successfully, but these errors were encountered: