prevent keyError when double_check_capsul_address returns None

This commit is contained in:
2021-02-17 20:56:52 -06:00
parent ba0b29462c
commit fd5d23cf22
2 changed files with 5 additions and 0 deletions

View File

@ -63,6 +63,9 @@ def index():
if result is not None:
vm["ipv4"] = result.ipv4
vm["state"] = result.state
else:
vm["state"] = "unknown"
vms = list(map(
lambda x: dict(