From fde275827544561e347638b9161bfb0bccfac190 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Sat, 9 Nov 2019 21:37:19 -0800 Subject: [PATCH] cutter: Fix bug where uploader was cleared on non-retryable error Instead of on retryable error --- cutter/cutter/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cutter/cutter/main.py b/cutter/cutter/main.py index 6ab09a0..c9edbcf 100644 --- a/cutter/cutter/main.py +++ b/cutter/cutter/main.py @@ -426,10 +426,10 @@ class Cutter(object): # and we set it back to UNEDITED, waiting for an editor to manually retry. if ex.retryable: state = 'EDITED' - kwargs = {} + kwargs = {'uploader': None} else: state = 'UNEDITED' - kwargs = {'uploader': None} + kwargs = {} self.logger.exception("Upload error for job {}: {}".format(format_job(job), ex)) upload_errors.labels( video_channel=job.video_channel,