Skip to content

Commit d2c98dc

Browse files
authored
Merge pull request #1501 from clinton-hall/hotfix/processresult
Fix missed ProcessResult
2 parents e1fe633 + 1113305 commit d2c98dc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/auto_process/movies.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,10 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual',
365365
logger.debug('The Scan command return status: {0}'.format(command_status), section)
366366
if command_status in ['completed']:
367367
logger.debug('The Scan command has completed successfully. Renaming was successful.', section)
368-
return [0, '{0}: Successfully post-processed {1}'.format(section, input_name)]
368+
return ProcessResult(
369+
message='{0}: Successfully post-processed {1}'.format(section, input_name),
370+
status_code=0,
371+
)
369372
elif command_status in ['failed']:
370373
logger.debug('The Scan command has failed. Renaming was not successful.', section)
371374
# return ProcessResult(

0 commit comments

Comments
 (0)