Do not fail when there is an error removing the temporary file

This commit is contained in:
Frédéric Péters 2010-09-14 16:25:12 +02:00
parent 73e7be28af
commit 5acc67c165
1 changed files with 4 additions and 1 deletions

View File

@ -52,7 +52,10 @@ class AvisOdt:
f = open(tempFileName, 'rb')
doc = f.read()
f.close()
os.remove(tempFileName)
try:
os.remove(tempFileName)
except OSError:
pass
return doc
def getPrefixedApType(self, de=False):