From 6cdb79a43128cc869ca95c45d7992e83b4e19582 Mon Sep 17 00:00:00 2001 From: portnov Date: Fri, 27 Feb 2009 13:25:18 +0500 Subject: [PATCH] Remove unneeded try/except (python modules are singletones). --- centrixd/cxconfig.py | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/centrixd/cxconfig.py b/centrixd/cxconfig.py index e8aaf6e..883771f 100644 --- a/centrixd/cxconfig.py +++ b/centrixd/cxconfig.py @@ -14,9 +14,6 @@ class CXConfig(ConfigObj): def reload(self): ConfigObj.reload(self) dispatcher.send("reconfig") - -try: - config -except NameError: - config = CXConfig("./centrixd.ini") + +config = CXConfig("./centrixd.ini") -- 1.7.2.3