BB: Add error message when machine is missing interfaces

This commit is contained in:
Mike Salvatore 2022-10-03 10:14:48 -04:00
parent 378e8d55ff
commit d922d71081
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ class MonkeyLogsDownloader(object):
try:
machine_ip = machines[agent.machine_id].network_interfaces[0].ip
except IndexError:
LOGGER.error(f"Machine with ID {agent.machine_id} has no network interfaces")
machine_ip = "UNKNOWN"
start_time = agent.start_time.strftime("%Y-%m-%d_%H-%M-%S")