Changeset 7d36a4


Ignore:
Timestamp:
02/11/2011 09:48:41 PM (14 years ago)
Author:
Calum Lind <calumlind+deluge@gmail.com>
Children:
4490cd
Parents:
6f844a
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:48:41 PM)
Message:

Fix #1527 - Converting unicode to unicode error in move_storage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • deluge/core/torrent.py

    r6f844a r7d36a4  
    794794    def move_storage(self, dest):
    795795        """Move a torrent's storage location"""
    796        
    797         # Convert path from utf8 to unicode
    798         dest_u=unicode(dest,"utf-8")
    799        
     796
     797        # Attempt to convert utf8 path to unicode
     798        # Note: Inconsistent encoding for 'dest', needs future investigation
     799        try:
     800           dest_u = unicode(dest, "utf-8")
     801        except TypeError:
     802           # String is already unicode
     803           dest_u = dest
     804
    800805        if not os.path.exists(dest_u):
    801806            try:
Note: See TracChangeset for help on using the changeset viewer.