Skip to content

Commit 9de0d79

Browse files
user library renamed, then attempted to match DAZ libarary-bugfix
1 parent 4a214f2 commit 9de0d79

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

DAZFix/LibraryFix.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ def fix_libraries(backup_first, backup_zip_path, daz_default_library_path, daz_u
175175
log_to_ui(f'NEW: {dupe_dirs_in_default_folder[0]}')
176176

177177
# Here we just need to rename to the default case
178-
os.rename(old_path, new_path)
178+
# This may have been addressed by the fix to the user's library above, so check...
179+
if old_path:
180+
os.rename(old_path, new_path)
179181

180182
globals.process_running = False
181183
log_to_ui("Complete!")

0 commit comments

Comments
 (0)