Skip to content
Snippets Groups Projects
Commit 5d5e980390d8 authored by Adrien Di Mascio's avatar Adrien Di Mascio
Browse files

[tests] flake8

parent 3e4d4721e822
No related branches found
No related tags found
No related merge requests found
......@@ -108,7 +108,7 @@
try:
# TODO option for async ?
es.index(**kwargs)
except (ConnectionError, ProtocolError):
except (ConnectionError, ProtocolError) as exc:
log.warning('Failed to index in hook, could not connect to ES')
except Exception as exc:
log.exception('Failed to index in hook')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment