From e4ce31a438d5adbb13752c09fd8be5bd38776b37 Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Sat, 23 Jul 2011 03:28:29 +0200 Subject: [PATCH] Ensure that empty command does not get added to command list --- mopidy/frontends/mpd/protocol/empty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mopidy/frontends/mpd/protocol/empty.py b/mopidy/frontends/mpd/protocol/empty.py index 33b3bd9f..4cdafd87 100644 --- a/mopidy/frontends/mpd/protocol/empty.py +++ b/mopidy/frontends/mpd/protocol/empty.py @@ -1,6 +1,6 @@ from mopidy.frontends.mpd.protocol import handle_request -@handle_request(r'^\s*$') +@handle_request(r'^[ ]*$') def empty(context): """The original MPD server returns ``OK`` on an empty request.""" pass