unkown stuff

This commit is contained in:
Dantenerosas 2023-09-26 02:04:59 +03:00 committed by nikili0n
parent fd874b4cd8
commit 7cefbbe0e5

View File

@ -102,7 +102,6 @@ class MasterService:
"status": "done" "status": "done"
}) })
except FileAlreadyExistException as ex: except FileAlreadyExistException as ex:
# TODO: сделать так, чтобы грузился обычный, нам не нужно записывать что-то в редис
return Result(result_type=ResultTypeEnum.EXIST, value={ return Result(result_type=ResultTypeEnum.EXIST, value={
"link": video_params["link"], "link": video_params["link"],
"result": ex.message, "result": ex.message,
@ -120,6 +119,11 @@ class MasterService:
"result": traceback.format_exc(), "result": traceback.format_exc(),
"status": "error" "status": "error"
}) })
return Result(result_type=ResultTypeEnum.EXCEPTION, value={
"link": video_params["link"],
"result": "Unknown exception encountered",
"status": "error"
})
# TODO upload to server # TODO upload to server