This commit is contained in:
2026-04-19 19:28:06 +02:00
parent 9e5ddec184
commit b226795731

View File

@@ -198,6 +198,10 @@ def scan_library(library_id: int, library_path: str, db_path: str,
conn.commit()
except Exception as e:
# UNIQUE constraint er forventet og ufarlig — sang findes allerede
if "UNIQUE constraint" in str(e):
logger.debug(f"Sang allerede i DB: {fp.name}")
else:
logger.warning(f"Scan fejl {fp.name}: {e}")
done += 1