From 52da88acaf821cf2a44d323744f7ceb135acbc83 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 3ec13d3..ec0a239 100644 --- a/src/core/master_service.py +++ b/src/core/master_service.py @@ -101,7 +101,6 @@ class MasterService: "status": "done" }) except FileAlreadyExistException as ex: - # TODO: сделать так, чтобы грузился обычный, нам не нужно записывать что-то в редис return Result(result_type=ResultTypeEnum.EXIST, value={ "link": video_params["link"], "result": ex.message, @@ -119,6 +118,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