From c70c312286eaf92918cf82406d002ea984aa3cc1 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Tue, 1 Feb 2022 13:41:33 +0100 Subject: [PATCH] Fix check if spec in postprocessing was None --- plugins/PostProcessingPlugin/PostProcessingPlugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/PostProcessingPlugin/PostProcessingPlugin.py b/plugins/PostProcessingPlugin/PostProcessingPlugin.py index 8968e2c547..755d815d0a 100644 --- a/plugins/PostProcessingPlugin/PostProcessingPlugin.py +++ b/plugins/PostProcessingPlugin/PostProcessingPlugin.py @@ -193,6 +193,8 @@ class PostProcessingPlugin(QObject, Extension): spec = importlib.util.spec_from_file_location(__name__ + "." + script_name, file_path) + if spec is None: + continue loaded_script = importlib.util.module_from_spec(spec) if spec.loader is None: continue