ignore reading emane global config from xml when not present

This commit is contained in:
Blake Harnden 2020-03-31 10:08:08 -07:00
parent 5d9b451b1d
commit 13ef701b6e

View file

@ -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():