Kaydet (Commit) 11a56096 authored tarafından Xisco Fauli's avatar Xisco Fauli

pyweb: Handle Keyerror exception

Change-Id: I16ea149917b911ba074415511d1f5053439c33bb
üst 65711936
...@@ -19,7 +19,6 @@ import traceback ...@@ -19,7 +19,6 @@ import traceback
import uno import uno
import time import time
#from common.Desktop import Desktop
from .WWD_Startup import WWD_Startup from .WWD_Startup import WWD_Startup
from .WWD_General import WWD_General from .WWD_General import WWD_General
from .WebWizardConst import * from .WebWizardConst import *
......
...@@ -147,7 +147,10 @@ class WebConfigSet(ConfigGroup): ...@@ -147,7 +147,10 @@ class WebConfigSet(ConfigGroup):
return self.childrenList[i] return self.childrenList[i]
def getElement(self, o): def getElement(self, o):
return self.childrenMap[o] try:
return self.childrenMap[o]
except KeyError:
return None
def getSize(self): def getSize(self):
return len(self.childrenList) return len(self.childrenList)
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
# #
import traceback import traceback
from ..common.Desktop import Desktop
from .WWD_Events import WWD_Events from .WWD_Events import WWD_Events
# The last class in the WebWizard Dialog class hirarchy. # The last class in the WebWizard Dialog class hirarchy.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment