A hack to get video id from the video worker

This commit is contained in:
blank X 2021-06-06 23:04:14 +07:00
parent b34f14a431
commit f108664c94
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ async def _video_worker():
proc = await asyncio.create_subprocess_exec(*(await construct_command()), stdin=asyncio.subprocess.PIPE, stdout=log_file, stderr=log_file)
except BaseException:
tempdir_obj.cleanup()
raise
raise Exception(f'This is a hack to retrieve the video id ({video_json["id"]}), the actual exception should be above')
upload_queue.put_nowait((tempdir_obj, video_json))
video_queue.task_done()