From 0f79c0f49e047ca6d2114b9f95d1a590bf81780e Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Tue, 18 Jan 2011 18:22:47 -0800 Subject: [PATCH] fix a silly UnboundLocalError (#116) --- NEWS | 1 + beets/ui/commands.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index e48fff686..fd4e7a925 100644 --- a/NEWS +++ b/NEWS @@ -28,6 +28,7 @@ destination. * When copying read-only files, the importer now tries to make the copy writable. (Previously, this would just crash the import.) +* Fixed an UnboundLocalError when no matches are found during autotag. 1.0b5 ----- diff --git a/beets/ui/commands.py b/beets/ui/commands.py index bae44065c..e056c7744 100644 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -228,11 +228,11 @@ def choose_match(path, items, cur_artist, cur_album, candidates, 'Enter U, S, E, or B:' ) if sel == 'u': - info = CHOICE_ASIS + choice = CHOICE_ASIS elif sel == 'e': - info = CHOICE_MANUAL + choice = CHOICE_MANUAL elif sel == 's': - info = CHOICE_SKIP + choice = CHOICE_SKIP elif sel == 'b': raise ImportAbort()