From 111330510fa69c18dcb32001c6e7150ea26604a5 Mon Sep 17 00:00:00 2001 From: Labrys of Knossos Date: Sat, 5 Jan 2019 00:26:32 -0500 Subject: [PATCH] Fix missed ProcessResult --- core/auto_process/movies.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/auto_process/movies.py b/core/auto_process/movies.py index cde56f27a..f3097b6f6 100644 --- a/core/auto_process/movies.py +++ b/core/auto_process/movies.py @@ -365,7 +365,10 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual', logger.debug('The Scan command return status: {0}'.format(command_status), section) if command_status in ['completed']: logger.debug('The Scan command has completed successfully. Renaming was successful.', section) - return [0, '{0}: Successfully post-processed {1}'.format(section, input_name)] + return ProcessResult( + message='{0}: Successfully post-processed {1}'.format(section, input_name), + status_code=0, + ) elif command_status in ['failed']: logger.debug('The Scan command has failed. Renaming was not successful.', section) # return ProcessResult(