tlogging - use self.print_error instead of util.print_error - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 08aee6a857bebd0b8ca2bb9d9b7623a4bea0ec24
DIR parent c13e05770150c5210783c3d42d3d2b1a683f18b4
HTML Author: SomberNight <somber.night@protonmail.com>
Date: Fri, 9 Mar 2018 14:58:13 +0100
logging - use self.print_error instead of util.print_error
Diffstat:
M lib/interface.py | 2 +-
M lib/network.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/lib/interface.py b/lib/interface.py
t@@ -144,7 +144,7 @@ class TcpConnection(threading.Thread, util.PrintError):
context = self.get_ssl_context(cert_reqs=ssl.CERT_REQUIRED, ca_certs=ca_path)
s = context.wrap_socket(s, do_handshake_on_connect=True)
except ssl.SSLError as e:
- print_error(e)
+ self.print_error(e)
s = None
except:
return
DIR diff --git a/lib/network.py b/lib/network.py
t@@ -677,7 +677,7 @@ class Network(util.DaemonThread):
# check cached response for subscriptions
r = self.sub_cache.get(k)
if r is not None:
- util.print_error("cache hit", k)
+ self.print_error("cache hit", k)
callback(r)
else:
message_id = self.queue_request(method, params)