mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-28 11:00:33 +00:00
Fix previous commit
This commit is contained in:
parent
532b409a54
commit
9055019cc2
@ -886,7 +886,7 @@ class Torrent(object):
|
||||
def move_storage(self, dest):
|
||||
"""Move a torrent's storage location"""
|
||||
|
||||
if deluge.common.is_windows():
|
||||
if deluge.common.windows_check():
|
||||
# Attempt to convert utf8 path to unicode
|
||||
# Note: Inconsistent encoding for 'dest', needs future investigation
|
||||
try:
|
||||
@ -894,6 +894,8 @@ class Torrent(object):
|
||||
except TypeError:
|
||||
# String is already unicode
|
||||
dest_u = dest
|
||||
else:
|
||||
dest_u = dest
|
||||
|
||||
if not os.path.exists(dest_u):
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user