#3008: Unhandled Error exceptions.KeyError: <type 'datetime.datetime'>
-----------------------+----------------------
  Reporter:  adziahel  |      Owner:  Cas
      Type:  bug       |     Status:  assigned
  Priority:  major     |  Milestone:  1.3.15
 Component:  Core      |    Version:  1.3.14
Resolution:            |   Keywords:
-----------------------+----------------------

Comment (by Cas):

 I cannot replicate with the trackers I have here. Are you test this fix
 and confirm if it works:

 {{{#!diff
 diff --git deluge/core/torrent.py deluge/core/torrent.py
 index 3b1a1e07c..acd6eb527 100644
 --- deluge/core/torrent.py
 +++ deluge/core/torrent.py
 @@ -192,7 +192,8 @@ def __init__(self, handle, options, state=None,
 filename=None, magnet=None):
                      tracker["url"] = value.url
                      tracker["tier"] = value.tier
                  else:
 -                    tracker = value
 +                    tracker["url"] = value["url"]
 +                    tracker["tier"] = value["tier"]
                  self.trackers.append(tracker)

          # Various torrent options
 @@ -351,7 +352,8 @@ def set_trackers(self, trackers, reannounce=True):
                      tracker["url"] = value.url
                      tracker["tier"] = value.tier
                  else:
 -                    tracker = value
 +                    tracker["url"] = value["url"]
 +                    tracker["tier"] = value["tier"]
                  trackers.append(tracker)
              self.trackers = trackers
              self.tracker_host = None
 }}}

--
Ticket URL: <http://dev.deluge-torrent.org/ticket/3008#comment:6>
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