From: ThomasV Date: Wed, 13 Jun 2012 20:12:09 +0000 (+0400) Subject: fix: line might be empty X-Git-Url: https://git.novaco.in/?p=electrum-server.git;a=commitdiff_plain;h=96733a4111d795b6a60dd650d690a9cfd3651efc fix: line might be empty --- diff --git a/backends/irc/__init__.py b/backends/irc/__init__.py index edd9dc9..28e60d9 100644 --- a/backends/irc/__init__.py +++ b/backends/irc/__init__.py @@ -49,6 +49,7 @@ class IrcThread(threading.Thread): line = sf.readline() line = line.rstrip('\r\n') line = line.split() + if not line: continue if line[0]=='PING': s.send('PONG '+line[1]+'\n') elif '353' in line: # answer to /names