mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-26 19:32:21 +00:00
Fix more issues with TorrentOptions
This commit is contained in:
parent
6756c69580
commit
a23d877a99
@ -93,8 +93,11 @@ class TorrentOptions(dict):
|
||||
def __getitem__(self, key):
|
||||
if super(TorrentOptions, self).has_key(key):
|
||||
return super(TorrentOptions, self).__getitem__(key)
|
||||
elif key in self.default_keys and self.default_keys[key] in self.config:
|
||||
elif key in self.default_keys:
|
||||
if self.default_keys[key] in self.config:
|
||||
return self.config[self.default_keys[key]]
|
||||
else:
|
||||
return self.default_keys[key]
|
||||
else:
|
||||
raise KeyError
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user