mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 18:08:39 +00:00
Fix previous commit
This commit is contained in:
parent
fc14b00868
commit
3309f59333
1 changed files with 4 additions and 2 deletions
|
@ -834,7 +834,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():
|
if deluge.common.windows_check():
|
||||||
# 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:
|
||||||
|
@ -842,6 +842,8 @@ class Torrent(object):
|
||||||
except TypeError:
|
except TypeError:
|
||||||
# String is already unicode
|
# String is already unicode
|
||||||
dest_u = dest
|
dest_u = dest
|
||||||
|
else:
|
||||||
|
dest_u = dest
|
||||||
|
|
||||||
if not os.path.exists(dest_u):
|
if not os.path.exists(dest_u):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue