Changeset f87377


Ignore:
Timestamp:
02/11/2011 09:58:40 PM (14 years ago)
Author:
Calum Lind <calumlind+deluge@gmail.com>
Branches:
2.0.x, develop, extjs4-port, master
Children:
98ca37
Parents:
e198ea
git-author:
Calum Lind <calumlind+deluge@gmail.com> (02/11/2011 09:48:00 AM)
git-committer:
Calum Lind <calumlind+deluge@gmail.com> (02/11/2011 09:58:40 PM)
Message:

Fix #1527 - Converting unicode to unicode error in move_storage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • deluge/core/torrent.py

    re198ea rf87377  
    808808    def move_storage(self, dest):
    809809        """Move a torrent's storage location"""
    810        
    811         # Convert path from utf8 to unicode
    812         dest_u=unicode(dest,"utf-8")
    813        
     810
     811        # Attempt to convert utf8 path to unicode
     812        # Note: Inconsistent encoding for 'dest', needs future investigation
     813        try:
     814           dest_u = unicode(dest, "utf-8")
     815        except TypeError:
     816           # String is already unicode
     817           dest_u = dest
     818
    814819        if not os.path.exists(dest_u):
    815820            try:
Note: See TracChangeset for help on using the changeset viewer.