From: Nathan Bird Date: Fri, 8 Aug 2014 16:59:20 +0000 (-0700) Subject: Only silence ENOENT in helpers.unlink X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=460ca2979be5fb6ba5d9c77af2b65afd3359cb61;p=packages%2Fb%2Fbup.git Only silence ENOENT in helpers.unlink This is what it is documented as doing and what makes sense in this case. Signed-off-by: Nathan Bird [rlb@defaultvalue.org: adjust commit message] Reviewed-by: Rob Browning Tested-by: Rob Browning --- diff --git a/lib/bup/helpers.py b/lib/bup/helpers.py index 300e67e..cf53da8 100644 --- a/lib/bup/helpers.py +++ b/lib/bup/helpers.py @@ -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):