#2926: Bug in torrent.get_peers
---------------------+---------------------------
 Reporter:  Cas      |      Owner:
     Type:  bug      |     Status:  new
 Priority:  minor    |  Milestone:  2.0
Component:  Unknown  |    Version:  develop (git)
 Keywords:           |
---------------------+---------------------------
 Not sure how this occurred but code should handle `None`...

 {{{
 Unhandled Error
 Traceback (most recent call last):
   File "/home/ubuntu/deluge.git/deluge/core/eventmanager.py", line 35, in
 emit
     handler(*event.args)
   File "/home/ubuntu/deluge.git/deluge/ui/sessionproxy.py", line 254, in
 on_torrent_added
     client.core.get_torrent_status(torrent_id, []).addCallback(on_status)
   File "/home/ubuntu/deluge.git/deluge/ui/client.py", line 517, in
 __call__
     return self.daemon.call(self.base, *args, **kwargs)
   File "/home/ubuntu/deluge.git/deluge/ui/client.py", line 467, in call
     m, *copy.deepcopy(args), **copy.deepcopy(kwargs)
 --- <exception caught here> ---
   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line
 134, in maybeDeferred
     result = f(*args, **kw)
   File "/home/ubuntu/deluge.git/deluge/core/core.py", line 512, in
 get_torrent_status
     all_keys=not keys)
   File "/home/ubuntu/deluge.git/deluge/core/core.py", line 496, in
 create_torrent_status
     status = self.torrentmanager[torrent_id].get_status(torrent_keys,
 diff, update=update, all_keys=all_keys)
   File "/home/ubuntu/deluge.git/deluge/core/torrent.py", line 942, in
 get_status
     status_dict[key] = self.status_funcs[key]()
   File "/home/ubuntu/deluge.git/deluge/core/torrent.py", line 795, in
 get_peers
     country = ''.join([char if char.isalpha() else ' ' for char in
 country])
 exceptions.TypeError: 'NoneType' object is not iterable
 }}}

--
Ticket URL: <http://dev.deluge-torrent.org/ticket/2926>
Deluge <http://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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/deluge-dev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to