diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2018-07-28 14:16:03 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2018-09-14 16:06:06 +0100 |
commit | ae4449642c053ceac0ca9fa542e1d62a6019ab16 (patch) | |
tree | 5fd894d335b27a8b2859c6a70df26524ccd083e6 /deluge/core/core.py | |
parent | bc2f4a30eb3c051dfa0abab027e49c08dd0b6c4e (diff) | |
download | deluge-ae4449642c053ceac0ca9fa542e1d62a6019ab16.tar.gz deluge-ae4449642c053ceac0ca9fa542e1d62a6019ab16.tar.bz2 deluge-ae4449642c053ceac0ca9fa542e1d62a6019ab16.zip |
[Py2to3] Fix log.warn deprecation warning
Diffstat (limited to 'deluge/core/core.py')
-rw-r--r-- | deluge/core/core.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deluge/core/core.py b/deluge/core/core.py index 451b9a88d..7125a8093 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -472,7 +472,7 @@ class Core(component.Component): torrent[0], torrent[1], torrent[2], save_state=idx == last_index, ) except AddTorrentError as ex: - log.warn('Error when adding torrent: %s', ex) + log.warning('Error when adding torrent: %s', ex) errors.append(ex) defer.returnValue(errors) return task.deferLater(reactor, 0, add_torrents) @@ -578,7 +578,7 @@ class Core(component.Component): # Save the session state self.torrentmanager.save_state() if errors: - log.warn('Failed to remove %d of %d torrents.', len(errors), len(torrent_ids)) + log.warning('Failed to remove %d of %d torrents.', len(errors), len(torrent_ids)) return errors return task.deferLater(reactor, 0, do_remove_torrents) |