candidate_wims = get_candidate_wims(vims_to_connect)
logger.info("Candidate WIMs: {:s}".format(str(candidate_wims)))
+ # check if there are no WIM candidates
+ if len(candidate_wims) == 0:
+ logger.info("No WIM accounts found")
+ return None, None
+
# check if a desired wim_account_id is specified in vld_params
wim_account_id = vld_params.get("wimAccountId")
if wim_account_id: