Closes #17951: Extend Ruff ruleset

This commit is contained in:
Jeremy Stretch
2024-11-07 10:24:15 -05:00
parent 812ce8471a
commit a183048891
16 changed files with 28 additions and 28 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ class EventRuleImportForm(NetBoxModelImportForm):
from extras.scripts import get_module_and_script
module_name, script_name = action_object.split('.', 1)
try:
module, script = get_module_and_script(module_name, script_name)
script = get_module_and_script(module_name, script_name)[1]
except ObjectDoesNotExist:
raise forms.ValidationError(_("Script {name} not found").format(name=action_object))
self.instance.action_object = script