#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):

 Ah of course it will be stored in the torrent state and reloaded. This
 additional change should fix that:
 {{{#!diff
 diff --git deluge/core/torrent.py deluge/core/torrent.py
 @@ -362,10 +352,13 @@ def set_trackers(self, trackers, reannounce=True):
          log.debug("Setting trackers for %s: %s", self.torrent_id,
 trackers)
          tracker_list = []

 -        for tracker in trackers:
 +        for idx, tracker in enumerate(trackers):
              new_entry = lt.announce_entry(tracker["url"])
              new_entry.tier = tracker["tier"]
              tracker_list.append(new_entry)
 +            # Need to remove lt 1.1.2 tracker datetime entries for
 rencoding.
 +            trackers[idx]["min_announce"] =
 trackers[idx]["next_announce"] = None
          self.handle.replace_trackers(tracker_list)

          # Print out the trackers
 }}}

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