'needle' argument to 'count' may be empty

This commit is contained in:
Stein Magnus Jodal 2010-03-07 19:28:01 +01:00
parent bc1167ba06
commit 6aacf8f6ce

View File

@ -530,7 +530,7 @@ class MpdHandler(object):
"""The original MPD server returns ``OK`` on an empty request.``"""
pass
@handle_pattern(r'^count "(?P<tag>[^"]+)" "(?P<needle>[^"]+)"$')
@handle_pattern(r'^count "(?P<tag>[^"]+)" "(?P<needle>[^"]*)"$')
def _music_db_count(self, tag, needle):
"""
*musicpd.org, music database section:*