mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-14 20:23:12 +08:00
Fix check if spec in postprocessing was None
This commit is contained in:
parent
ab2439f561
commit
c70c312286
@ -193,6 +193,8 @@ class PostProcessingPlugin(QObject, Extension):
|
|||||||
|
|
||||||
spec = importlib.util.spec_from_file_location(__name__ + "." + script_name,
|
spec = importlib.util.spec_from_file_location(__name__ + "." + script_name,
|
||||||
file_path)
|
file_path)
|
||||||
|
if spec is None:
|
||||||
|
continue
|
||||||
loaded_script = importlib.util.module_from_spec(spec)
|
loaded_script = importlib.util.module_from_spec(spec)
|
||||||
if spec.loader is None:
|
if spec.loader is None:
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user