Fix check if spec in postprocessing was None

This commit is contained in:
Jaime van Kessel 2022-02-01 13:41:33 +01:00
parent ab2439f561
commit c70c312286

View file

@ -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