Merge "Fixes H201: no 'except:' at least use 'except Exception:'"

This commit is contained in:
Jenkins 2016-08-01 06:24:20 +00:00 committed by Gerrit Code Review
commit 346c684c03
2 changed files with 2 additions and 3 deletions

View File

@ -73,7 +73,7 @@ class Persister(object):
if len(self._data_points) >= self._database_batch_size:
self._flush()
except:
except Exception:
LOG.exception(
'Persister encountered fatal exception processing '
'messages. '

View File

@ -26,8 +26,7 @@ commands = {posargs}
[flake8]
max-line-length = 120
# TODO: ignored checks should be enabled in the future
# H201 no 'except:' at least use 'except Exception:'
# H405 multi line docstring summary not separated with an empty line
# H904 Wrap long lines in parentheses instead of a backslash
ignore = F821,H201,H405,H904,E126,E125,H306,E302,E122
ignore = F821,H405,H904,E126,E125,H306,E302,E122
exclude=.venv,.git,.tox,dist,*openstack/common*,*egg,build