Skip to content

Commit ff97b5c

Browse files
committed
fix: fixed notadirectoryerror on re-init symlinks
1 parent acdcac0 commit ff97b5c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/program/program.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,8 @@ def _init_db_from_symlinks(self):
414414
log_message = f"Retry failed: {item.log_string}"
415415
progress.update(task, advance=1, log=log_message)
416416
continue
417+
except NotADirectoryError:
418+
errors.append(f"Skipping {item.log_string} as it is not a valid directory")
417419
except Exception as e:
418420
errors.append(f"Error enhancing {item.log_string}: {str(e)}")
419421
log_message = f"Error: {item.log_string}"

0 commit comments

Comments
 (0)