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}\":"