Only convert the move path to unicode if on windows

This commit is contained in:
Andrew Resch 2012-09-14 15:55:28 -07:00
parent 7dd4645a7b
commit 532b409a54
1 changed files with 8 additions and 7 deletions

View File

@ -886,6 +886,7 @@ class Torrent(object):
def move_storage(self, dest): def move_storage(self, dest):
"""Move a torrent's storage location""" """Move a torrent's storage location"""
if deluge.common.is_windows():
# Attempt to convert utf8 path to unicode # Attempt to convert utf8 path to unicode
# Note: Inconsistent encoding for 'dest', needs future investigation # Note: Inconsistent encoding for 'dest', needs future investigation
try: try: