unkown stuff
This commit is contained in:
parent
dca266db1f
commit
52da88acaf
@ -101,7 +101,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,
|
||||||
@ -119,6 +118,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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user