Addressed PR comment.

This commit is contained in:
Julio-Oliveira-Encora 2024-06-03 10:55:04 -03:00
parent 287565c108
commit ccc6cf3d4f

View File

@ -139,8 +139,7 @@ class ConditionSet:
if len(ruleset) == 1:
self.logic = (list(ruleset.keys())[0]).lower()
if self.logic not in (AND, OR):
raise ValueError(_(
f"Invalid logic type: {self.logic} (must be 'AND' or 'OR'). Please check documentation."))
raise ValueError(_("Invalid logic type: must be 'AND' or 'OR'. Please check documentation."))
# Compile the set of Conditions
self.conditions = [