From a3ed2f01787f9eef6920a645d7d1eb8b65223d31 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Mon, 14 Jan 2019 20:48:24 -0500 Subject: [PATCH] Fix potential Python File Node upgrade crash --- korman/nodes/node_python.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/korman/nodes/node_python.py b/korman/nodes/node_python.py index 26ef9e1..04a8f02 100644 --- a/korman/nodes/node_python.py +++ b/korman/nodes/node_python.py @@ -370,8 +370,11 @@ class PlasmaPythonFileNode(PlasmaVersionedNode, bpy.types.Node): text_id = bpy.data.texts.get(self.filename, None) if text_id is None: path = Path(self.filepath) - if path.exists(): - text_id = bpy.data.texts.load(self.filepath) + try: + if path.exists(): + text_id = bpy.data.texts.load(self.filepath) + except OSError: + pass with self.NoUpdate(): self.text_id = text_id self.property_unset("filepath")