mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +00:00
Removed debug print
This commit is contained in:
parent
0f67dc168b
commit
fbeea9159e
1 changed files with 2 additions and 3 deletions
|
@ -1158,9 +1158,8 @@ class TorrentManager(component.Component):
|
||||||
# Get the torrent status for each torrent_id
|
# Get the torrent status for each torrent_id
|
||||||
for torrent_id in torrent_ids:
|
for torrent_id in torrent_ids:
|
||||||
if not torrent_id in self.torrents:
|
if not torrent_id in self.torrents:
|
||||||
# This happens sometimes, but why? Unfixed bug?
|
# The torrent_id does not exist in the dict.
|
||||||
# Without this test it gives a KeyError.
|
# Could be the clients cache (sessionproxy) isn't up to speed.
|
||||||
print "Missing torrent id:", torrent_id
|
|
||||||
del status_dict[torrent_id]
|
del status_dict[torrent_id]
|
||||||
else:
|
else:
|
||||||
status_dict[torrent_id] = self.torrents[torrent_id].get_status(torrent_keys, diff)
|
status_dict[torrent_id] = self.torrents[torrent_id].get_status(torrent_keys, diff)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue