From f4f7615bf86984db96f79a2a5dba09d297f867d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Thu, 18 May 2017 09:55:07 +0200 Subject: [PATCH] Take into account, that key eventID is not always available. --- pylot/RELEASE-VERSION | 2 +- pylot/core/io/inputs.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pylot/RELEASE-VERSION b/pylot/RELEASE-VERSION index 2d62d124..caa29f5a 100644 --- a/pylot/RELEASE-VERSION +++ b/pylot/RELEASE-VERSION @@ -1 +1 @@ -b97f-dirty +fa2b-dirty diff --git a/pylot/core/io/inputs.py b/pylot/core/io/inputs.py index 17ac61e3..8fa1e262 100644 --- a/pylot/core/io/inputs.py +++ b/pylot/core/io/inputs.py @@ -85,7 +85,10 @@ class AutoPickParameter(object): return bool(self.__parameter) def __getitem__(self, key): - return self.__parameter[key] + try: + return self.__parameter[key] + except: + return None def __setitem__(self, key, value): self.__parameter[key] = value