From 6aacf8f6ce2c9a929ec9cfb410948b5061da1a04 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Sun, 7 Mar 2010 19:28:01 +0100 Subject: [PATCH] 'needle' argument to 'count' may be empty --- mopidy/mpd/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mopidy/mpd/handler.py b/mopidy/mpd/handler.py index d0638889..15a7258e 100644 --- a/mopidy/mpd/handler.py +++ b/mopidy/mpd/handler.py @@ -530,7 +530,7 @@ class MpdHandler(object): """The original MPD server returns ``OK`` on an empty request.``""" pass - @handle_pattern(r'^count "(?P[^"]+)" "(?P[^"]+)"$') + @handle_pattern(r'^count "(?P[^"]+)" "(?P[^"]*)"$') def _music_db_count(self, tag, needle): """ *musicpd.org, music database section:*