Browse Source
If server-string can't be parsed, fall back to localhost.
Co-Authored-By: ghost43 <somber.night@protonmail.com>
hard-fail-on-bad-server-string
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
electrum/network.py
|
@ -268,8 +268,8 @@ class Network(Logger): |
|
|
try: |
|
|
try: |
|
|
deserialize_server(self.default_server) |
|
|
deserialize_server(self.default_server) |
|
|
except: |
|
|
except: |
|
|
print('Failed to parse server-string.') |
|
|
self.logger.warning('failed to parse server-string; falling back to localhost.') |
|
|
exit() |
|
|
self.default_server = "localhost:50002:s" |
|
|
if not self.default_server: |
|
|
if not self.default_server: |
|
|
self.default_server = pick_random_server() |
|
|
self.default_server = pick_random_server() |
|
|
|
|
|
|
|
|