From 09b02f055859e003c121a1852a448934d8b99cc0 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Mon, 3 Sep 2012 16:09:14 +0200 Subject: [PATCH] Reraise exception without losing the traceback (fixes #173) --- mopidy/frontends/mpd/protocol/music_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mopidy/frontends/mpd/protocol/music_db.py b/mopidy/frontends/mpd/protocol/music_db.py index cde2754a..da8de91e 100644 --- a/mopidy/frontends/mpd/protocol/music_db.py +++ b/mopidy/frontends/mpd/protocol/music_db.py @@ -196,7 +196,7 @@ def _list_build_query(field, mpd_query): if error.message == 'No closing quotation': raise MpdArgError(u'Invalid unquoted character', command=u'list') else: - raise error + raise tokens = [t.decode('utf-8') for t in tokens] if len(tokens) == 1: if field == u'album':