tHard fail on bad server-string (#6086) - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 1d667fe9327d17a752084ca9c69091ec71617d33 DIR parent da8b24d61af00109d480fe4ee5b73d130a7c1f25 HTML Author: Luke Childs <lukechilds123@gmail.com> Date: Tue, 14 Apr 2020 19:15:28 +0700 Hard fail on bad server-string (#6086) * If server-string can't be parsed, fall back to localhost. Co-Authored-By: Luke Childs <lukechilds123@gmail.com> Co-authored-by: ghost43 <somber.night@protonmail.com> Diffstat: M electrum/network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/electrum/network.py b/electrum/network.py t@@ -268,8 +268,8 @@ class Network(Logger): try: deserialize_server(self.default_server) except: - self.logger.warning('failed to parse server-string; falling back to random.') - self.default_server = None + self.logger.warning('failed to parse server-string; falling back to localhost.') + self.default_server = "localhost:50002:s" if not self.default_server: self.default_server = pick_random_server()