fix a silly UnboundLocalError (#116)

This commit is contained in:
Adrian Sampson 2011-01-18 18:22:47 -08:00
parent 580e4acf10
commit 0f79c0f49e
2 changed files with 4 additions and 3 deletions

1
NEWS
View file

@ -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
-----

View file

@ -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()