From 13ef701b6eb1586475a8da919ae086f764265faf Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Tue, 31 Mar 2020 10:08:08 -0700 Subject: [PATCH] ignore reading emane global config from xml when not present --- daemon/core/xml/corexml.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/core/xml/corexml.py b/daemon/core/xml/corexml.py index 87bf2e76..9951a994 100644 --- a/daemon/core/xml/corexml.py +++ b/daemon/core/xml/corexml.py @@ -731,6 +731,8 @@ class CoreXmlReader: def read_emane_global_config(self) -> None: emane_global_configuration = self.scenario.find("emane_global_configuration") + if emane_global_configuration is None: + return emulator_configuration = emane_global_configuration.find("emulator") configs = {} for config in emulator_configuration.iterchildren():