Klar v1
This commit is contained in:
@@ -198,6 +198,10 @@ def scan_library(library_id: int, library_path: str, db_path: str,
|
|||||||
|
|
||||||
conn.commit()
|
conn.commit()
|
||||||
except Exception as e:
|
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}")
|
logger.warning(f"Scan fejl {fp.name}: {e}")
|
||||||
|
|
||||||
done += 1
|
done += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user