mirror of
https://github.com/beetbox/beets.git
synced 2026-02-23 07:44:38 +01:00
Fix formatted.get calls
This commit is contained in:
parent
6b3bea99a0
commit
d641927ad8
1 changed files with 2 additions and 2 deletions
|
|
@ -576,8 +576,8 @@ def _field_diff(field, old, new):
|
|||
return None
|
||||
|
||||
# Get formatted values for output.
|
||||
oldstr = old.formatted.get(field, u'')
|
||||
newstr = new.formatted.get(field, u'')
|
||||
oldstr = old.formatted.get(field) or u''
|
||||
newstr = new.formatted.get(field) or u''
|
||||
|
||||
# For strings, highlight changes. For others, colorize the whole
|
||||
# thing.
|
||||
|
|
|
|||
Loading…
Reference in a new issue