Skip to content

Commit

Permalink
membership test should be 'not in'
Browse files Browse the repository at this point in the history
  • Loading branch information
fsoubelet committed Aug 12, 2024
1 parent 7e4cb32 commit 85daef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generic_parser/dict_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def _parse_arguments(self, arg_dict, param_dict):
checked_dict[key] = DictParser._check_value(key, arg_dict, param_dict)
elif isinstance(param_dict[key], dict):
try:
if not arg_dict or not (key in arg_dict):
if not arg_dict or key not in arg_dict:
checked_dict[key] = self._parse_arguments({}, param_dict[key])[0]
else:
checked_dict[key] = self._parse_arguments(arg_dict[key], param_dict[key])[0]
Expand Down

0 comments on commit 85daef5

Please sign in to comment.