Minor clean ups in the core.

This commit is contained in:
Alex Dedul 2007-07-19 15:48:02 +00:00
parent 1c5db57f79
commit c0de2bd32d

View File

@ -696,10 +696,7 @@ class Manager:
return {} return {}
def set_supp_torrent_state_val(self, unique_ID, key, val): def set_supp_torrent_state_val(self, unique_ID, key, val):
try: if unique_ID not in self.supp_torrent_states:
if self.supp_torrent_states[unique_ID] is None:
self.supp_torrent_states[unique_ID] = {}
except KeyError:
self.supp_torrent_states[unique_ID] = {} self.supp_torrent_states[unique_ID] = {}
self.supp_torrent_states[unique_ID][key] = val self.supp_torrent_states[unique_ID][key] = val