From e8924cc7bfed45aa748cfd5f62f5d19ef26e741e Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Mon, 21 Nov 2011 23:27:12 -0800 Subject: [PATCH] check for label presence (actually fixes #254 this time) --- beets/autotag/mb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/autotag/mb.py b/beets/autotag/mb.py index b2ac071f9..2dc0f902d 100644 --- a/beets/autotag/mb.py +++ b/beets/autotag/mb.py @@ -115,7 +115,7 @@ def album_info(release): # Label name. if release.get('label-info-list'): label_info = release['label-info-list'][0] - if label_info['label']: + if label_info.get('label'): label = label_info['label']['name'] if label != '[no label]': info.label = label