mpd: Fix flake8 warning
This commit is contained in:
parent
a8b15e6af5
commit
9b4d76866b
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user