From 3c450b0d8179254ac38f925e084ece8388a2dee1 Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Thu, 16 Jan 2020 11:42:34 +0100 Subject: Fix ogClient socket.error typo --- src/ogClient.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ogClient.py b/src/ogClient.py index c380b1d..bd54420 100644 --- a/src/ogClient.py +++ b/src/ogClient.py @@ -65,7 +65,8 @@ class ogClient: def receive(self): try: data = self.sock.recv(1024).decode('utf-8') - except socket.err as err: + except socket.error as err: + data = '' print ('Error3 ' + str(err)) if len(data) == 0: -- cgit v1.2.3-18-g5258