summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Resch <andrewresch@gmail.com>2009-04-05 23:28:31 +0000
committerAndrew Resch <andrewresch@gmail.com>2009-04-05 23:28:31 +0000
commit52f8d7cacfb5ca572d52170064d1a53fb042c4f8 (patch)
treed6b9b2e2d63743837542c4a50d75ae496b17b6ce
parentf3f5aa661e12b84307e2c0e1ac254f3421626f72 (diff)
downloaddeluge-52f8d7cacfb5ca572d52170064d1a53fb042c4f8.tar.gz
deluge-52f8d7cacfb5ca572d52170064d1a53fb042c4f8.tar.bz2
deluge-52f8d7cacfb5ca572d52170064d1a53fb042c4f8.zip
Another fix for loading torrents on Windows
-rw-r--r--deluge/ui/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/ui/client.py b/deluge/ui/client.py
index 4f7924c48..a80ae1fe5 100644
--- a/deluge/ui/client.py
+++ b/deluge/ui/client.py
@@ -259,7 +259,7 @@ class BaseClient(object):
# Open the .torrent file for reading because we need to send it's
# contents to the core.
try:
- f = open(torrent_file, "rb")
+ f = open(unicode(torrent_file), "rb")
except Exception, e:
log.warning("Unable to open %s: %s", torrent_file, e)
continue