Fix explicit utf-8 encoding
This commit is contained in:
parent
530b9f2d88
commit
f2b4447126
@ -74,7 +74,7 @@ class MPD(IntervalModule):
|
|||||||
sock = self.s
|
sock = self.s
|
||||||
sock.recv(8192)
|
sock.recv(8192)
|
||||||
if self.password is not None:
|
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.recv(8192)
|
||||||
sock.send((command + "\n").encode("utf-8"))
|
sock.send((command + "\n").encode("utf-8"))
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user