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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user