Strip the line to filter lines composed of only whitespaces

Fix #9395
pull/9805/head
Michael Scherer 10 years ago
parent 12968acd5f
commit b84fba4439

@ -230,6 +230,7 @@ class Connection(object):
host_fh.close() host_fh.close()
for line in data.split("\n"): for line in data.split("\n"):
line = line.strip()
if line is None or " " not in line: if line is None or " " not in line:
continue continue
tokens = line.split() tokens = line.split()

Loading…
Cancel
Save