ignore reading emane global config from xml when not present
This commit is contained in:
parent
5d9b451b1d
commit
13ef701b6e
1 changed files with 2 additions and 0 deletions
|
@ -731,6 +731,8 @@ class CoreXmlReader:
|
||||||
|
|
||||||
def read_emane_global_config(self) -> None:
|
def read_emane_global_config(self) -> None:
|
||||||
emane_global_configuration = self.scenario.find("emane_global_configuration")
|
emane_global_configuration = self.scenario.find("emane_global_configuration")
|
||||||
|
if emane_global_configuration is None:
|
||||||
|
return
|
||||||
emulator_configuration = emane_global_configuration.find("emulator")
|
emulator_configuration = emane_global_configuration.find("emulator")
|
||||||
configs = {}
|
configs = {}
|
||||||
for config in emulator_configuration.iterchildren():
|
for config in emulator_configuration.iterchildren():
|
||||||
|
|
Loading…
Add table
Reference in a new issue