Browse Source

Fix check if spec in postprocessing was None

Jaime van Kessel 3 years ago
parent
commit
c70c312286
1 changed files with 2 additions and 0 deletions
  1. 2 0
      plugins/PostProcessingPlugin/PostProcessingPlugin.py

+ 2 - 0
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