Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Artists be artisting- the name " " in Feb 01 2025 dump breaks exporter.py #156

Closed
dillonburns opened this issue Feb 6, 2025 · 0 comments

Comments

@dillonburns
Copy link

Current artist dump from 02/01/2025 discogs_20250201_artists.xml.gz

triggers the following error for 1 artist

File "/discogs-xml2db-develop/discogsxml2db/exporter.py", line 180, in validate
    if not artist.name:
AttributeError: 'Artist' object has no attribute 'name'

with the following change, a valid csv export is produced with this as the culprit lol. Someone named themselves " "

66827,[artist #66827],,"[b]DO NOT USE.[/b] This is an incorrect artist name represented by %C2%A0 i.e. the ""non-breaking space"" character - in Unicode: U+00A0, 0xC2A0, aka "" "" in HTML.",Needs Vote

change line 180

if not artist.name:

to

if not getattr(artist, 'name', None):
@dillonburns dillonburns changed the title Artists be artisting- the name "non-breaking space" breaks exporter.py Artists be artisting- the name " " in Feb 01 2025 dump breaks exporter.py Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant