From e1a9b191d515e9c64ca610fc48622c0131b45f14 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Sat, 11 Aug 2012 19:51:35 +0200 Subject: [PATCH] dak/process_upload.py: ignore non-existing files when rejecting --- dak/process_upload.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dak/process_upload.py b/dak/process_upload.py index 25f32b58..28a60a93 100755 --- a/dak/process_upload.py +++ b/dak/process_upload.py @@ -377,6 +377,8 @@ def real_reject(directory, upload, reason=None, notify=True): for fn in files: src = os.path.join(upload.directory, fn) dst = utils.find_next_free(os.path.join(rejectdir, fn)) + if not os.path.exists(src): + continue fs.copy(src, dst) if upload.reject_reasons is not None: -- 2.39.5