mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Fix check if spec in postprocessing was None
This commit is contained in:
parent
ab2439f561
commit
c70c312286
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue