From 9ce738e39a70ded71140894ae9fe22b224e53273 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sat, 3 Mar 2012 23:09:53 +0000 Subject: [PATCH] Fix adding magnet error in webui when started from classic mode --- deluge/core/torrentmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py index 3dd316cb1..26717a7f4 100644 --- a/deluge/core/torrentmanager.py +++ b/deluge/core/torrentmanager.py @@ -448,7 +448,7 @@ class TorrentManager(component.Component): handle = None try: if magnet: - handle = lt.add_magnet_uri(self.session, magnet, add_torrent_params) + handle = lt.add_magnet_uri(self.session, utf8_encoded(magnet), add_torrent_params) else: handle = self.session.add_torrent(add_torrent_params) except RuntimeError, e: