Skip to content
Permalink
Browse files
also allow for connection error here
  • Loading branch information
Humbedooh committed Aug 17, 2021
1 parent cd1fded commit 74bd5c358122c1f7045a5ab2dbffe44472e9a4ee
Showing 1 changed file with 1 addition and 1 deletion.
@@ -125,7 +125,7 @@ async def list_offenders(self, config: plugins.configuration.BlockyConfiguration
offenders = []
try:
candidates = await find_top_clients(config, aggtype=self.aggtype, duration=self.duration, filters=self.filters)
except (asyncio.exceptions.TimeoutError, elasticsearch.exceptions.ConnectionTimeout):
except (asyncio.exceptions.TimeoutError, elasticsearch.exceptions.ConnectionTimeout, elasticsearch.exceptions.ConnectionError):
print("Offender search timed out, retrying later!")
candidates = []
for candidate in candidates:

0 comments on commit 74bd5c3

Please sign in to comment.