Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ pp
dist
build
connectrum.egg-info
.idea
2 changes: 1 addition & 1 deletion connectrum/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _connection_lost(self, protocol):
return

self.protocol = None
logger.warn("Electrum server connection lost")
logger.warning("Electrum server connection lost")

for (_, fut) in self.inflight.values():
fut.set_exception(ElectrumErrorResponse("Electrum server connection lost"))
Expand Down
2 changes: 1 addition & 1 deletion connectrum/findall.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ async def reconnect(self, **kwargs):
# Trigger an event that may cascade to a client_connect.
# Don't continue until a client_connect occurs, which may be never.

logger.warn("Disconnected (will reconnect)")
logger.warning("Disconnected (will reconnect)")

# Note that we're not in a coroutine, so we don't have access
# to await and asyncio.sleep
Expand Down
2 changes: 1 addition & 1 deletion connectrum/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def data_received(self, data):
if not line: continue

try:
msg = line.decode('utf-8', "error").strip()
msg = line.decode('utf-8', "strict").strip()
except UnicodeError as exc:
logger.exception("Encoding issue on %r" % line)
self.connection_lost(exc)
Expand Down