Something went wrong while setting issue due date.
E722 (bare except) not reported.
Flake8 installed via pip install flake8
inside a Python2.7 virtual environment.
Output of flake8 --bug-report
:
{
"dependencies": [
{
"dependency": "setuptools",
"version": "36.2.7"
}
],
"platform": {
"python_implementation": "CPython",
"python_version": "2.7.13",
"system": "Linux"
},
"plugins": [
{
"plugin": "mccabe",
"version": "0.6.1"
},
{
"plugin": "naming",
"version": "0.4.1"
},
{
"plugin": "pycodestyle",
"version": "2.3.1"
},
{
"plugin": "pyflakes",
"version": "1.5.0"
}
],
"version": "3.4.1"
}
When flake8
is run without arguments, and with no configuration file present, on the following file...
#!/usr/bin/env python2
if __name__ == "__main__":
try:
print "Never raises exception"
except:
print "Bare exception handler"
...no errors, warnings, or violations are reported, even though pycodestyle
reports the bare exception handler:
bare-except.py:6:5: E722 do not use bare except'