From 3c59acddc2ce49346601aa46fdaeb725b29ca53e Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Tue, 2 Aug 2005 22:29:25 +0000 Subject: [PATCH] print of exception not needed --- src/common/optparser.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/common/optparser.py b/src/common/optparser.py index a836e235b..5acacef3e 100644 --- a/src/common/optparser.py +++ b/src/common/optparser.py @@ -89,19 +89,15 @@ class OptionsParser: return err_str fd.close() if os.path.exists(self.__filename): + # win32 needs this try: os.remove(self.__filename) except: pass try: os.rename(self.__tempfile, self.__filename) - except Exception, e: + except: err_str = _('Unable to open %s for writing.\n') % (self.__filename) - # write the exception in case the bug continue to exists on - # windows - # TODO remove the following 2 lines - from sys import stderr - stderr.write(err_str + str(e) + '\n') return err_str return None