From a6c85710050556dd6f3a2893d0a9a42230c0e81c Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Sun, 12 Jun 2011 14:19:42 +0200 Subject: [PATCH] Fix error/reconnect during retrieval of command list. MpdDispatcher returns [] instead of None after the filter refactoring --- mopidy/frontends/mpd/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mopidy/frontends/mpd/session.py b/mopidy/frontends/mpd/session.py index 53f4cab7..ce5d3be7 100644 --- a/mopidy/frontends/mpd/session.py +++ b/mopidy/frontends/mpd/session.py @@ -49,7 +49,7 @@ class MpdSession(asynchat.async_chat): Format a response from the MPD command handlers and send it to the client. """ - if response is not None: + if response: response = LINE_TERMINATOR.join(response) logger.debug(u'Response to [%s]:%s: %s', self.client_address, self.client_port, indent(response))