Skip to content

Commit

Permalink
check for nonetype for optional parameters (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbartlett-beamio committed Apr 30, 2019
1 parent dc5573d commit 8a7816f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algorithm_toolkit/atk.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def check_params(self, definition):

for op in ops:
if op['name'] in self.params:
if self.params[op['name']] != '':
if self.params[op['name']] != '' and self.params[op['name']] is not None:
try:
is_valid = self.check_param(op, False, is_valid)
except Exception as e:
Expand Down

0 comments on commit 8a7816f

Please sign in to comment.