Take into account, that key eventID is not always available.

This commit is contained in:
Ludger Küperkoch 2017-05-18 09:55:07 +02:00
parent fa2b65ea3d
commit f4f7615bf8
2 changed files with 5 additions and 2 deletions

View File

@ -1 +1 @@
b97f-dirty fa2b-dirty

View File

@ -85,7 +85,10 @@ class AutoPickParameter(object):
return bool(self.__parameter) return bool(self.__parameter)
def __getitem__(self, key): def __getitem__(self, key):
try:
return self.__parameter[key] return self.__parameter[key]
except:
return None
def __setitem__(self, key, value): def __setitem__(self, key, value):
self.__parameter[key] = value self.__parameter[key] = value