summaryrefslogtreecommitdiffstats
path: root/deluge/ui/client.py
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2018-07-28 14:16:03 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2018-09-14 16:06:06 +0100
commitae4449642c053ceac0ca9fa542e1d62a6019ab16 (patch)
tree5fd894d335b27a8b2859c6a70df26524ccd083e6 /deluge/ui/client.py
parentbc2f4a30eb3c051dfa0abab027e49c08dd0b6c4e (diff)
downloaddeluge-ae4449642c053ceac0ca9fa542e1d62a6019ab16.tar.gz
deluge-ae4449642c053ceac0ca9fa542e1d62a6019ab16.tar.bz2
deluge-ae4449642c053ceac0ca9fa542e1d62a6019ab16.zip
[Py2to3] Fix log.warn deprecation warning
Diffstat (limited to 'deluge/ui/client.py')
-rw-r--r--deluge/ui/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/deluge/ui/client.py b/deluge/ui/client.py
index ac9b9f99a..64db4ce06 100644
--- a/deluge/ui/client.py
+++ b/deluge/ui/client.py
@@ -133,7 +133,7 @@ class DelugeRPCProtocol(DelugeTransferProtocol):
exception_cls = getattr(error, request[2])
exception = exception_cls(*request[3], **request[4])
except TypeError:
- log.warn('Received invalid RPC_ERROR (Old daemon?): %s', request[2])
+ log.warning('Received invalid RPC_ERROR (Old daemon?): %s', request[2])
return
# Ideally we would chain the deferreds instead of instance
@@ -188,7 +188,7 @@ class DelugeRPCProtocol(DelugeTransferProtocol):
# Send the request in a tuple because multiple requests can be sent at once
self.transfer_message((request.format_message(),))
except Exception as ex:
- log.warn('Error occurred when sending message: %s', ex)
+ log.warning('Error occurred when sending message: %s', ex)
class DelugeRPCClientFactory(ClientFactory):