summaryrefslogtreecommitdiffstats
path: root/Wrappers/Python
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2018-08-15 12:23:49 +0100
committerGitHub <noreply@github.com>2018-08-15 12:23:49 +0100
commit2557fb9765d8bdbb236d3b0e3b3d6bed486839f3 (patch)
tree9e36dc052c109e501882718ad165ad310ec973e2 /Wrappers/Python
parent59596ad67b5167a9d9ee9d353101bb4c5974541f (diff)
downloadframework-2557fb9765d8bdbb236d3b0e3b3d6bed486839f3.tar.gz
framework-2557fb9765d8bdbb236d3b0e3b3d6bed486839f3.tar.bz2
framework-2557fb9765d8bdbb236d3b0e3b3d6bed486839f3.tar.xz
framework-2557fb9765d8bdbb236d3b0e3b3d6bed486839f3.zip
replaces in with explicit test (#141)
closes #139
Diffstat (limited to 'Wrappers/Python')
-rw-r--r--Wrappers/Python/ccpi/framework.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Wrappers/Python/ccpi/framework.py b/Wrappers/Python/ccpi/framework.py
index 485e96b..d82010b 100644
--- a/Wrappers/Python/ccpi/framework.py
+++ b/Wrappers/Python/ccpi/framework.py
@@ -863,8 +863,9 @@ class DataProcessor(object):
raise NotImplementedError('Implement basic checks for input DataContainer')
def get_output(self):
- if None in self.__dict__.values():
- raise ValueError('Not all parameters have been passed')
+ for k,v in self.__dict__.items():
+ if v is None:
+ raise ValueError('Key {0} is None'.format(k))
shouldRun = False
if self.runTime == -1:
shouldRun = True