Merge "Fixes H201: no 'except:' at least use 'except Exception:'"
This commit is contained in:
commit
346c684c03
@ -73,7 +73,7 @@ class Persister(object):
|
|||||||
|
|
||||||
if len(self._data_points) >= self._database_batch_size:
|
if len(self._data_points) >= self._database_batch_size:
|
||||||
self._flush()
|
self._flush()
|
||||||
except:
|
except Exception:
|
||||||
LOG.exception(
|
LOG.exception(
|
||||||
'Persister encountered fatal exception processing '
|
'Persister encountered fatal exception processing '
|
||||||
'messages. '
|
'messages. '
|
||||||
|
3
tox.ini
3
tox.ini
@ -26,8 +26,7 @@ commands = {posargs}
|
|||||||
[flake8]
|
[flake8]
|
||||||
max-line-length = 120
|
max-line-length = 120
|
||||||
# TODO: ignored checks should be enabled in the future
|
# 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
|
# H405 multi line docstring summary not separated with an empty line
|
||||||
# H904 Wrap long lines in parentheses instead of a backslash
|
# 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
|
exclude=.venv,.git,.tox,dist,*openstack/common*,*egg,build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user