Skip to content

Commit

Permalink
avoids empty spaces in artist name
Browse files Browse the repository at this point in the history
fixes #156
  • Loading branch information
philipmat committed Feb 20, 2025
1 parent 63cf5e4 commit cf8f90f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discogsxml2db/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def write_group_members(writer, artist):
])

def validate(self, artist):
if not artist.name:
if not getattr(artist, 'name', None):
artist.name = '[artist #%d]' % artist.id
return True

Expand Down

0 comments on commit cf8f90f

Please sign in to comment.