Fix issue that prevented torrents from being added

This commit is contained in:
Andrew Resch 2008-12-28 15:38:28 +00:00
parent 2fb3f4b534
commit 368f94157f

View File

@ -94,7 +94,7 @@ class TorrentOptions(dict):
if super(TorrentOptions, self).has_key(key):
return super(TorrentOptions, self).__getitem__(key)
elif key in self.default_keys:
if self.default_keys[key] in self.config.config:
if self.default_keys[key] and self.default_keys[key] in self.config.config:
return self.config[self.default_keys[key]]
else:
return self.default_keys[key]