Skip to content
Snippets Groups Projects
Commit 3c59acdd authored by dkirov's avatar dkirov
Browse files

print of exception not needed

parent a502d8d2
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment