#3325: Cant remove torrents with 0 download size
------------------------+---------------------------
Reporter: granjerox | Owner:
Type: bug | Status: new
Priority: major | Milestone: 2.0.4
Component: Core | Version:
Resolution: | Keywords: remove delete
------------------------+---------------------------
Changes (by bogstriples):
* cc: deluge-qhqajpof@… (added)
* version: 2.0.3 =>
Comment:
Arch Linux, packages used:
deluge 2.0.4.dev23+g2f1c008a2-3
libtorrent-rasterbar 1:1.2.5-1
python-twisted 19.10.0-3
python 3.8.2-1
python-attrs 19.3.0-4
python-automat 20.2.0-1
python-click 7.1.1-1
python-constantly 15.1.0-5
python-hyperlink 19.0.0-3
python-idna 2.9-1
python-incremental 17.5.0-4
python-pyhamcrest 1.9.0-5
python-six 1.14.0-1
python-zope-interface 5.0.2-1
==== LOG ====
--------------------------------------------------------------------------------
RPCRequest: core.remove_torrents(['<CENSORED>'], False)
--------------------------------------------------------------------------------
TypeError
join() argument must be str, bytes, or os.PathLike object, not 'NoneType':
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/deluge/core/rpcserver.py", line
347, in on_fail
failure.raiseException()
File "/usr/lib/python3.8/site-packages/twisted/python/failure.py", line
488, in raiseException
raise self.value.with_traceback(self.tb)
File "/usr/lib/python3.8/site-packages/twisted/internet/defer.py", line
654, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/lib/python3.8/site-packages/twisted/internet/task.py", line
866, in <lambda>
d.addCallback(lambda ignored: callable(*args, **kw))
File "/usr/lib/python3.8/site-packages/deluge/core/core.py", line 613,
in do_remove_torrents
self.torrentmanager.remove(
File "/usr/lib/python3.8/site-packages/deluge/core/torrentmanager.py",
line 745, in remove
torrent.delete_torrentfile(delete_copies)
File "/usr/lib/python3.8/site-packages/deluge/core/torrent.py", line
1321, in delete_torrentfile
os.path.join(self.config['torrentfiles_location'], self.filename)
File "/usr/lib/python3.8/posixpath.py", line 90, in join
genericpath._check_arg_types('join', a, *p)
File "/usr/lib/python3.8/genericpath.py", line 152, in _check_arg_types
raise TypeError(f'{funcname}() argument must be str, bytes, or '
TypeError: join() argument must be str, bytes, or os.PathLike object, not
'NoneType'
--------------------------------------------------------------------------------
17:38:21.383 [CRITICAL][twisted
:154 ] Unhandled error in Deferred:
17:38:21.383 [CRITICAL][deluge.log
:93 ] twisted.internet.defer
[Failure instance: Traceback (failure with no frames): <class
'deluge.error.WrappedException'>: join() argument must be str, bytes, or
os.PathLike object, not 'NoneType'
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/deluge/core/rpcserver.py", line
347, in on_fail
failure.raiseException()
File "/usr/lib/python3.8/site-packages/twisted/python/failure.py", line
488, in raiseException
raise self.value.with_traceback(self.tb)
File "/usr/lib/python3.8/site-packages/twisted/internet/defer.py", line
654, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/lib/python3.8/site-packages/twisted/internet/task.py", line
866, in <lambda>
d.addCallback(lambda ignored: callable(*args, **kw))
File "/usr/lib/python3.8/site-packages/deluge/core/core.py", line 613,
in do_remove_torrents
self.torrentmanager.remove(
File "/usr/lib/python3.8/site-packages/deluge/core/torrentmanager.py",
line 745, in remove
torrent.delete_torrentfile(delete_copies)
File "/usr/lib/python3.8/site-packages/deluge/core/torrent.py", line
1321, in delete_torrentfile
os.path.join(self.config['torrentfiles_location'], self.filename)
File "/usr/lib/python3.8/posixpath.py", line 90, in join
genericpath._check_arg_types('join', a, *p)
File "/usr/lib/python3.8/genericpath.py", line 152, in _check_arg_types
raise TypeError(f'{funcname}() argument must be str, bytes, or '
TypeError: join() argument must be str, bytes, or os.PathLike object, not
'NoneType'
==== /LOG ====
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3325#comment:2>
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.d63543f3130a8045c49d3d43e4234a97%40deluge-torrent.org.