From 5d21efcd21cd46c336404d37ebf8e80b6ed77c11 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 27 Jan 2020 15:10:48 +0100 Subject: Fix T73409: error deleting preset saved on different drive than Blender install --- release/scripts/modules/bpy/utils/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'release') diff --git a/release/scripts/modules/bpy/utils/__init__.py b/release/scripts/modules/bpy/utils/__init__.py index abe33b0e8ea..ae1e3495cba 100644 --- a/release/scripts/modules/bpy/utils/__init__.py +++ b/release/scripts/modules/bpy/utils/__init__.py @@ -486,7 +486,10 @@ def is_path_builtin(path): ): return True except FileNotFoundError: - #The path we tried to look up doesn't exist + # The path we tried to look up doesn't exist. + pass + except ValueError: + # Happens on Windows when paths don't have the same drive. pass return False -- cgit v1.2.3