From 5976d8484e53f477df52ca52a838149fd4e408aa Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Thu, 4 May 2023 11:45:41 -0700 Subject: [PATCH] Update netbox/extras/models/scripts.py Co-authored-by: Jeremy Stretch --- netbox/extras/models/scripts.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/netbox/extras/models/scripts.py b/netbox/extras/models/scripts.py index bbfd63a56..154bd565f 100644 --- a/netbox/extras/models/scripts.py +++ b/netbox/extras/models/scripts.py @@ -53,11 +53,10 @@ class ScriptModule(PythonModuleMixin, JobsMixin, ManagedFile): # For child objects in submodules use the full import path w/o the root module as the name return cls.full_name.split(".", maxsplit=1)[1] - module = None try: module = self.get_module() except Exception as e: - pass + module = None scripts = {} ordered = getattr(module, 'script_order', [])