Skip to content

Commit

Permalink
fix: added cleaner directory log when rebuilding symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
dreulavelle committed Nov 9, 2024
1 parent b25658d commit bb85517
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/program/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ def _init_db_from_symlinks(self):
added_items.add(item.imdb_id)

log_message = f"Indexed IMDb Id: {enhanced_item.id} as {enhanced_item.type.title()}: {enhanced_item.log_string}"

except NotADirectoryError:
errors.append(f"Skipping {item.log_string} as it is not a valid directory")
except Exception as e:
logger.exception(f"Error processing {item.log_string}: {e}")
finally:
Expand Down

0 comments on commit bb85517

Please sign in to comment.