mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Flake8 35 (#11972)
* Upgrade flake8 to 3.5 * Fix flake8 bare except errors * Make flake8 and pylint cooperate
This commit is contained in:
committed by
Paulus Schoutsen
parent
5426e5c875
commit
78a3c01f27
@@ -34,7 +34,7 @@ def get_error_log(hass, test_client, expected_count):
|
||||
def _generate_and_log_exception(exception, log):
|
||||
try:
|
||||
raise Exception(exception)
|
||||
except: # pylint: disable=bare-except
|
||||
except: # noqa: E722 # pylint: disable=bare-except
|
||||
_LOGGER.exception(log)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user