mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-16 13:26:33 +00:00
Minor clean ups in the core.
This commit is contained in:
parent
1c5db57f79
commit
c0de2bd32d
@ -696,10 +696,7 @@ class Manager:
|
||||
return {}
|
||||
|
||||
def set_supp_torrent_state_val(self, unique_ID, key, val):
|
||||
try:
|
||||
if self.supp_torrent_states[unique_ID] is None:
|
||||
self.supp_torrent_states[unique_ID] = {}
|
||||
except KeyError:
|
||||
if unique_ID not in self.supp_torrent_states:
|
||||
self.supp_torrent_states[unique_ID] = {}
|
||||
|
||||
self.supp_torrent_states[unique_ID][key] = val
|
||||
|
Loading…
x
Reference in New Issue
Block a user