Skip to content

Commit

Permalink
Fix for swapped key and value in ignore-list-matching
Browse files Browse the repository at this point in the history
  • Loading branch information
m-urban committed Jun 1, 2015
1 parent f497bf8 commit 5a854a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beets/autotag/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def _add_candidate(items, results, info):
dist = distance(items, info, mapping)

# Skip matches with ignored penalties.
penalties = [key for _, key in dist]
penalties = [key for key, _ in dist]
for penalty in config['match']['ignored'].as_str_seq():
if penalty in penalties:
log.debug(u'Ignored. Penalty: {0}', penalty)
Expand Down

0 comments on commit 5a854a7

Please sign in to comment.