From: Ansgar Burchardt Date: Sat, 11 Aug 2012 17:51:35 +0000 (+0200) Subject: dak/process_upload.py: ignore non-existing files when rejecting X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1a9b191d515e9c64ca610fc48622c0131b45f14;p=dak dak/process_upload.py: ignore non-existing files when rejecting --- 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: