From d641927ad865ff5e627f750ad03cffd295d94d51 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Tue, 6 May 2014 15:57:04 -0700 Subject: [PATCH] Fix formatted.get calls --- beets/ui/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beets/ui/__init__.py b/beets/ui/__init__.py index 00b217850..e798fed2d 100644 --- a/beets/ui/__init__.py +++ b/beets/ui/__init__.py @@ -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.