Another fix for loading torrents on Windows
This commit is contained in:
parent
f3f5aa661e
commit
52f8d7cacf
@ -259,7 +259,7 @@ class BaseClient(object):
|
|||||||
# Open the .torrent file for reading because we need to send it's
|
# Open the .torrent file for reading because we need to send it's
|
||||||
# contents to the core.
|
# contents to the core.
|
||||||
try:
|
try:
|
||||||
f = open(torrent_file, "rb")
|
f = open(unicode(torrent_file), "rb")
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
log.warning("Unable to open %s: %s", torrent_file, e)
|
log.warning("Unable to open %s: %s", torrent_file, e)
|
||||||
continue
|
continue
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user