mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 00:58:16 -06:00
Addressed PR comment.
This commit is contained in:
parent
287565c108
commit
ccc6cf3d4f
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user