From aa8b84c8cd3f1d672e8217688a4ad6d622297818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Fri, 7 Aug 2026 09:40:01 +0800 Subject: [PATCH] Stop binding the unread role in the parsed credit check Co-Authored-By: Claude Opus 5 (1M context) --- tools/src/pop_fem_audit_tools/commands/build_db.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/src/pop_fem_audit_tools/commands/build_db.py b/tools/src/pop_fem_audit_tools/commands/build_db.py index 0f3ea68..02c06ea 100644 --- a/tools/src/pop_fem_audit_tools/commands/build_db.py +++ b/tools/src/pop_fem_audit_tools/commands/build_db.py @@ -396,14 +396,13 @@ class ArtistImporter: ``Role.PRIMARY`` entry, or contains a name blank after stripping. """ - role: Role if len(parsed) == 0 or not any( role == Role.PRIMARY for _, role in parsed): raise BuildError( f"song {song.id} \"{song.artist_credit}\": no" " primary artist parsed") name: str - for name, role in parsed: + for name, _ in parsed: if name.strip() == "": raise BuildError( f"song {song.id} \"{song.artist_credit}\":"