summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-01-16 11:42:34 +0100
committerAlvaro Neira Ayuso <alvaroneay@gmail.com>2020-01-19 19:50:44 +0100
commit3c450b0d8179254ac38f925e084ece8388a2dee1 (patch)
treee03f0dfd326562cbae50a6ddf4222e1905bb6a48 /src
parent23cc1e6b86f72ea395e8c156e4e8bda05c4a8329 (diff)
Fix ogClient socket.error typo
Diffstat (limited to 'src')
-rw-r--r--src/ogClient.py3
1 files changed, 2 insertions, 1 deletions
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: