From 7cefbbe0e5ce79ffce741d2dd088ad5dc425d855 Mon Sep 17 00:00:00 2001 From: Dantenerosas Date: Tue, 26 Sep 2023 02:04:59 +0300 Subject: [PATCH] unkown stuff --- src/core/master_service.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/master_service.py b/src/core/master_service.py index 217886a..6cc50f7 100644 --- a/src/core/master_service.py +++ b/src/core/master_service.py @@ -102,7 +102,6 @@ class MasterService: "status": "done" }) except FileAlreadyExistException as ex: - # TODO: сделать так, чтобы грузился обычный, нам не нужно записывать что-то в редис return Result(result_type=ResultTypeEnum.EXIST, value={ "link": video_params["link"], "result": ex.message, @@ -120,6 +119,11 @@ class MasterService: "result": traceback.format_exc(), "status": "error" }) + return Result(result_type=ResultTypeEnum.EXCEPTION, value={ + "link": video_params["link"], + "result": "Unknown exception encountered", + "status": "error" + }) # TODO upload to server