mpd: Fix flake8 warning

This commit is contained in:
Stein Magnus Jodal 2015-05-04 08:44:45 +02:00
parent a8b15e6af5
commit 9b4d76866b

View File

@ -167,7 +167,8 @@ class MpdDispatcher(object):
# TODO: check that blacklist items are valid commands?
blacklist = self.config['mpd'].get('command_blacklist', [])
if tokens and tokens[0] in blacklist:
logger.warning('MPD client used blacklisted command: %s', tokens[0])
logger.warning(
'MPD client used blacklisted command: %s', tokens[0])
raise exceptions.MpdDisabled(command=tokens[0])
try:
return protocol.commands.call(tokens, context=self.context)