.flake8
author Andrew Halberstadt <ahalberstadt@mozilla.com>
Wed, 31 Jan 2018 14:32:08 -0500
changeset 402274 2d0766c3e7c94d7af3e40b8069aa8e3d6d4071aa
parent 377819 0145883aea3a74740298a2dc3072e4a4e80c8570
child 410601 ad34ac3d45a62dff961bd247e36ab209af2cc0e5
permissions -rw-r--r--
Bug 1434430 - [flake8] Fix blank 'except' statements r=rwood This is a new issue that gets linted with flake8 3.5.0. Basically you should never use a blank except: statement. This will catch all exceptions, including KeyboardInterrupt and SystemExit (which is likely not intended). If a catch all is needed, use `except: Exception`. If you *really* mean to also catch KeyboardInterrupt et al, use `except: BaseException`. Of course, being specific is often better than a catch all. MozReview-Commit-ID: FKx80MLO4RN

[flake8]
# See http://pep8.readthedocs.io/en/latest/intro.html#configuration
ignore = E121, E123, E126, E129, E133, E226, E241, E242, E704, W503, E402, E741
max-line-length = 99
exclude =
    testing/mochitest/pywebsocket,