spc01: improve error handling, catch exception in copy_file

This commit is contained in:
Juergen Schmidt 2010-12-13 13:36:58 +01:00
parent bdccc1a498
commit 6417dec446

View file

@ -116,6 +116,11 @@ class AbstractL10nTool:
return self._options.inputfile[0] == '@'
def copy_file(self, inputfilename, outputfilename):
try:
os.remove(outputfilename)
except:
pass
try:
shutil.copy(inputfilename, outputfilename)
except IOError: