Entropy/dumpTools:

- also catch RuntimeError exceptions on dumpobj


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2879 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2009-01-08 23:42:56 +00:00
parent f45b8f8e16
commit c53824ebd9

View File

@@ -52,6 +52,9 @@ def dumpobj(name, object, completePath = False, ignoreExceptions = True):
if etpConst['entropygid'] != None:
os.chown(dmpfile,-1,etpConst['entropygid'])
f.flush()
except RuntimeError:
try: os.remove(dmpfile)
except OSError: pass
except (EOFError,IOError,OSError):
if not ignoreExceptions:
raise