except network.exceptions as exception:
logger.warning("Exception '%s' during fetching instances (fetch_instances) from args.domain='%s'", type(exception), args.domain)
instances.set_last_error(args.domain, exception)
+ instances.update_data(args.domain)
return 100
if args.single:
logger.debug("Invoking instances.set_total_peerlist(%s,%d) ...", domain, len(peerlist))
instances.set_total_peers(domain, peerlist)
- logger.debug("Checking if domain='%s' has pending updates ...", domain)
- if instances.has_pending(domain):
- logger.debug("Flushing updates for domain='%s' ...", domain)
- instances.update_data(domain)
-
logger.debug("peerlist[]='%s'", type(peerlist))
if peerlist is None:
logger.warning("Cannot fetch peers: domain='%s'", domain)
logger.debug("Invoking cookies.clear(%s) ...", domain)
cookies.clear(domain)
+ logger.debug("Checking if domain='%s' has pending updates ...", domain)
+ if instances.has_pending(domain):
+ logger.debug("Flushing updates for domain='%s' ...", domain)
+ instances.update_data(domain)
+
logger.debug("EXIT!")
def fetch_peers(domain: str, software: str, origin: str) -> list: