Skip to content

Commit

Permalink
mediafile: Catch IndexError when file has empty list tag
Browse files Browse the repository at this point in the history
Fixes #913
  • Loading branch information
Thomas Scholtes committed Aug 24, 2014
1 parent 225ce62 commit f96ab45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beets/mediafile.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def fetch(self, mutagen_file):
"""
try:
return mutagen_file[self.key][0]
except KeyError:
except KeyError, IndexError:
return None

def deserialize(self, mutagen_value):
Expand Down

0 comments on commit f96ab45

Please sign in to comment.