From 2cd14b4dd10548f62639d104ac2a8a8a2aac42bc Mon Sep 17 00:00:00 2001 From: Arthur Date: Thu, 4 May 2023 09:48:55 -0700 Subject: [PATCH] 12416 widen exception catching for internal script error --- netbox/extras/models/scripts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/extras/models/scripts.py b/netbox/extras/models/scripts.py index a7a7356a9..bbfd63a56 100644 --- a/netbox/extras/models/scripts.py +++ b/netbox/extras/models/scripts.py @@ -56,7 +56,7 @@ class ScriptModule(PythonModuleMixin, JobsMixin, ManagedFile): module = None try: module = self.get_module() - except OSError as e: + except Exception as e: pass scripts = {}