From 898a8c6c761bdf3cd483eaa9bc2005d764d64bd4 Mon Sep 17 00:00:00 2001 From: ahrenholz Date: Thu, 29 Aug 2013 20:35:56 +0000 Subject: [PATCH] (Boeing r1757) fix exception raised when EMANE model is missing config --- daemon/core/emane/emane.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/core/emane/emane.py b/daemon/core/emane/emane.py index 8e65dd03..dfdcd805 100644 --- a/daemon/core/emane/emane.py +++ b/daemon/core/emane/emane.py @@ -352,6 +352,8 @@ class Emane(ConfigurableManager): def setnodemodel(self, n): emanenode = self._objs[n] + if n not in self.configs: + return False for (t, v) in self.configs[n]: if t is None: continue