summaryrefslogtreecommitdiff
path: root/python/walmgr.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/walmgr.py')
-rwxr-xr-xpython/walmgr.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/python/walmgr.py b/python/walmgr.py
index f990bdef..e5374705 100755
--- a/python/walmgr.py
+++ b/python/walmgr.py
@@ -2211,7 +2211,12 @@ STOP TIME: %(stop_time)s
if fname < last:
self.log.debug("deleting %s" % full)
if not self.not_really:
- os.remove(full)
+ try:
+ os.remove(full)
+ except:
+ # don't report the errors if the file has been already removed
+ # happens due to conflicts with pg_archivecleanup for instance.
+ pass
cur_last = fname
return cur_last