forked from bartvdbraak/blender
quiet error installing an addon when the directory already exists (would happen on OSX frequently),
the addon would install but error was misleading.
This commit is contained in:
parent
5be5ad039d
commit
b1a0dc6630
@ -1762,7 +1762,7 @@ class WM_OT_addon_install(Operator):
|
||||
self.report({'ERROR'}, "Failed to get addons path")
|
||||
return {'CANCELLED'}
|
||||
|
||||
# create dir is if missing.
|
||||
if not os.path.isdir(path_addons):
|
||||
try:
|
||||
os.makedirs(path_addons, exist_ok=True)
|
||||
except:
|
||||
|
Loading…
Reference in New Issue
Block a user