peerlist = list()
logger.debug("software='%s'", software)
if software is not None:
- logger.debug("Fetching instances for domain='%s',software='%s',origin='%s'", domain, software, origin)
- peerlist = fetch_peers(domain, software, origin)
+ try:
+ logger.debug("Fetching instances for domain='%s',software='%s',origin='%s'", domain, software, origin)
+ peerlist = fetch_peers(domain, software, origin)
+ except network.exceptions as exception:
+ _DEPTH = _DEPTH - 1
+ raise exception
logger.debug("peerlist[]='%s'", type(peerlist))
if isinstance(peerlist, list):