From 3477fd4aa2ed33b7cb99039c886b563b0b4ee7b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Arnauts?= Date: Fri, 12 Jun 2020 17:02:19 +0200 Subject: [PATCH] Use sock.sendall instead of sock.send (#32) --- resources/lib/modules/iptvmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/modules/iptvmanager.py b/resources/lib/modules/iptvmanager.py index 1310da4..99e4dae 100644 --- a/resources/lib/modules/iptvmanager.py +++ b/resources/lib/modules/iptvmanager.py @@ -30,7 +30,7 @@ class IPTVManager: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect(('127.0.0.1', self.port)) try: - sock.send(json.dumps(func()).encode()) # pylint: disable=not-callable + sock.sendall(json.dumps(func()).encode()) # pylint: disable=not-callable finally: sock.close()