# HG changeset patch # User Ludovic Chabant # Date 1421994200 28800 # Node ID c5330cb35794f28400d36605295173681e5d0b8c # Parent cba781477bd0733899bfcce98d9645683083f559 processing: Don't fail if an asset we want to remove has already been removed. diff -r cba781477bd0 -r c5330cb35794 piecrust/processing/base.py --- a/piecrust/processing/base.py Sun Jan 18 12:13:28 2015 -0800 +++ b/piecrust/processing/base.py Thu Jan 22 22:23:20 2015 -0800 @@ -246,7 +246,10 @@ if delete and not new_only: for path, reason in record.getDeletions(): logger.debug("Removing '%s': %s" % (path, reason)) - os.remove(path) + try: + os.remove(path) + except FileNotFoundError: + pass logger.info('[delete] %s' % path) # Invoke post-processors.