chg: Sync with prod

pull/19/head
Raphaël Vinot 2022-12-12 11:43:14 +01:00
parent 79102a23eb
commit 648cb143ec
1 changed files with 4 additions and 0 deletions

View File

@ -80,6 +80,10 @@ class DBInsertManager(AbstractManager):
# Data gathered from IPASN History: # Data gathered from IPASN History:
# * IP Block of the IP # * IP Block of the IP
# * AS number # * AS number
if not routing_info:
self.logger.warning(f"No response for {responses['responses'][i]}")
done.append(uuid)
continue
if 'error' in routing_info: if 'error' in routing_info:
self.logger.warning(f"Unable to find routing information for {data['ip']} - {data['datetime']}: {routing_info['error']}") self.logger.warning(f"Unable to find routing information for {data['ip']} - {data['datetime']}: {routing_info['error']}")
done.append(uuid) done.append(uuid)