Fix explicit utf-8 encoding

This commit is contained in:
Lennart Braun 2016-02-26 16:18:12 +01:00
parent 530b9f2d88
commit f2b4447126

View File

@ -74,7 +74,7 @@ class MPD(IntervalModule):
sock = self.s
sock.recv(8192)
if self.password is not None:
sock.send('password "{}"\n'.format(self.password).encode())
sock.send('password "{}"\n'.format(self.password).encode("utf-8"))
sock.recv(8192)
sock.send((command + "\n").encode("utf-8"))
try: