From ccc6cf3d4fa5a80e0786eb83a1745ccdbcffa06e Mon Sep 17 00:00:00 2001 From: Julio-Oliveira-Encora Date: Mon, 3 Jun 2024 10:55:04 -0300 Subject: [PATCH] Addressed PR comment. --- netbox/extras/conditions.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/netbox/extras/conditions.py b/netbox/extras/conditions.py index b57ad1a35..5680be444 100644 --- a/netbox/extras/conditions.py +++ b/netbox/extras/conditions.py @@ -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 = [