From c0de2bd32d6121c4643220e2367b8d8109fc348c Mon Sep 17 00:00:00 2001 From: Alex Dedul Date: Thu, 19 Jul 2007 15:48:02 +0000 Subject: [PATCH] Minor clean ups in the core. --- src/core.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core.py b/src/core.py index d00b93673..977dac5bf 100644 --- a/src/core.py +++ b/src/core.py @@ -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