chg: Move on if there is an exception on fetching lists

pull/12/head
Raphaël Vinot 2018-04-04 23:44:11 +02:00
parent e00dfc3e3f
commit b5894c45da
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ class ModulesManager(AbstractManager):
loop = asyncio.get_event_loop() loop = asyncio.get_event_loop()
try: try:
loop.run_until_complete(asyncio.gather( loop.run_until_complete(asyncio.gather(
*[module.fetch_list() for module in self.modules if module.fetcher]) *[module.fetch_list() for module in self.modules if module.fetcher],
return_exceptions=True)
) )
except aiohttp.client_exceptions.ClientConnectorError as e: except aiohttp.client_exceptions.ClientConnectorError as e:
self.logger.critical('Exception while fetching lists: {}'.format(e)) self.logger.critical('Exception while fetching lists: {}'.format(e))