Skip to content

Commit

Permalink
Fix _list2str to support None genres
Browse files Browse the repository at this point in the history
  • Loading branch information
JOJ0 committed Jan 25, 2025
1 parent 2161b3d commit 27af67a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beetsplug/autogenre/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ def _format_genre(self, genre):
def _str2list(self, str):
return str and str.split(self._separator) or []

def _list2str(self, list):
return self._separator.join(list)
def _list2str(self, genrelist):
return self._separator.join([str(g) for g in genrelist if g is not None])


def _filter_item(item, all, force):
Expand Down

0 comments on commit 27af67a

Please sign in to comment.