We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
or
is not None
1 parent f314f09 commit 20d91ceCopy full SHA for 20d91ce
1 file changed
valid8/entry_points.py
@@ -583,8 +583,8 @@ def _create_validation_error(self,
583
""" The function doing the final error raising. """
584
585
# first merge the info provided in arguments and in self
586
- error_type = error_type or self.error_type
587
- help_msg = help_msg or self.help_msg
+ error_type = error_type if error_type is not None else self.error_type
+ help_msg = help_msg if help_msg is not None else self.help_msg
588
ctx = copy(self.kw_context_args)
589
ctx.update(kw_context_args)
590
0 commit comments