Skip to content

Commit 20d91ce

Browse files
author
Sylvain MARIE
committed
Replaced implicit or with explicit is not None
1 parent f314f09 commit 20d91ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

valid8/entry_points.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,8 +583,8 @@ def _create_validation_error(self,
583583
""" The function doing the final error raising. """
584584

585585
# 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
586+
error_type = error_type if error_type is not None else self.error_type
587+
help_msg = help_msg if help_msg is not None else self.help_msg
588588
ctx = copy(self.kw_context_args)
589589
ctx.update(kw_context_args)
590590

0 commit comments

Comments
 (0)