minor tweak

This commit is contained in:
Marcos Pinto 2007-11-02 19:53:18 +00:00
commit 3610c30a25

View file

@ -164,16 +164,19 @@ class DelugeGTK:
self.memory_timer = 0 self.memory_timer = 0
for torrent in self.manager.get_queue(): for torrent in self.manager.get_queue():
unique_ID = self.manager.get_torrent_unique_id(torrent) unique_ID = self.manager.get_torrent_unique_id(torrent)
if self.manager.unique_IDs[unique_ID].uploaded_memory:
self.manager.unique_IDs[unique_ID].initial_uploaded_memory = \
self.manager.unique_IDs[unique_ID].uploaded_memory
try: try:
if self.manager.unique_IDs[unique_ID].trackers: if self.manager.unique_IDs[unique_ID].uploaded_memory:
try: self.manager.unique_IDs[unique_ID].initial_uploaded_memory = \
self.manager.replace_trackers(unique_ID, \ self.manager.unique_IDs[unique_ID].uploaded_memory
self.manager.unique_IDs[unique_ID].trackers) try:
except: if self.manager.unique_IDs[unique_ID].trackers:
pass try:
self.manager.replace_trackers(unique_ID, \
self.manager.unique_IDs[unique_ID].trackers)
except:
pass
except:
pass
except: except:
pass pass