From 9e8beca4e1e4b2496906309abb63139496a87e5c Mon Sep 17 00:00:00 2001 From: rofl0r Date: Mon, 7 Jan 2019 16:22:06 +0000 Subject: [PATCH] do not treat empty lines as servers --- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index 3aa867f..8c7c510 100644 --- a/config.py +++ b/config.py @@ -33,4 +33,4 @@ def load(): global servers with open('servers.txt', 'r') as handle: - servers = handle.read().split('\n') + servers = [x.strip() for x in handle.readlines() if len(x.strip()) > 0]