]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/helpers.py
Only silence ENOENT in helpers.unlink
[bup.git] / lib / bup / helpers.py
index 300e67eee25dd9123537b73a1b4fc1a3fc72075c..cf53da84a6a43a6569ec75b6ddd2e868d1d50207 100644 (file)
@@ -188,8 +188,8 @@ def unlink(f):
     try:
         os.unlink(f)
     except OSError, e:
-        if e.errno == errno.ENOENT:
-            pass  # it doesn't exist, that's what you asked for
+        if e.errno != errno.ENOENT:
+            raise
 
 
 def readpipe(argv, preexec_fn=None):