Opened 4 years ago

#3377 new bug

Torrent deletion: join() argument must be str or bytes, not 'NoneType

Reported by: MaxRecvDataSegmentLength Owned by:
Priority: minor Milestone: needs verified
Component: Core Version: 2.0.0
Keywords: Cc:


I had to modify core/ 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:
                 os.path.join(self.config['torrentfiles_location'], self.filename)

Change History (0)

Note: See TracTickets for help on using tickets.