Fix unhandled permissions exception in bpy.utils.is_path_builtin
An excepting would be raised when the parent/child paths didn't have permissions to access.
This commit is contained in:
@@ -602,6 +602,9 @@ def _is_path_parent_of(parent_path, path):
|
||||
except ValueError:
|
||||
# Happens on Windows when paths don't have the same drive.
|
||||
pass
|
||||
except PermissionError:
|
||||
# When either of the paths don't have permissions to access.
|
||||
pass
|
||||
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user