#3377: Torrent deletion: join() argument must be str or bytes, not 'NoneType
--------------------------------------+-------------------
 Reporter:  MaxRecvDataSegmentLength  |       Type:  bug
   Status:  new                       |   Priority:  minor
Milestone:  needs verified            |  Component:  Core
  Version:  2.0.0                     |   Keywords:
--------------------------------------+-------------------
 I had to modify `core/torrent.py` to clean up my list.
 I have no idea if that is a valid fix or why `self.filename` was `None`
 and if it is normal, but it worked for me.
 {{{
 @@ -1312,7 +1312,7 @@ class Torrent(object):
          torrent_files = [
              os.path.join(get_config_dir(), 'state', self.torrent_id +
 '.torrent')
          ]
 -        if delete_copies:
 +        if delete_copies and self.filename is not None:
              torrent_files.append(
                  os.path.join(self.config['torrentfiles_location'],
 self.filename)
              )
 }}}

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3377>
Deluge <https://deluge-torrent.org/>
Deluge Project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/deluge-dev/063.478709cd45c49d1e4b4b9106ed5463ec%40deluge-torrent.org.

Reply via email to