From f108664c943531bfd8e71a1a7da61b3963445700 Mon Sep 17 00:00:00 2001 From: blank X Date: Sun, 6 Jun 2021 23:04:14 +0700 Subject: [PATCH] A hack to get video id from the video worker --- autoytarchive/workers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoytarchive/workers.py b/autoytarchive/workers.py index 94e8d51..2f82937 100644 --- a/autoytarchive/workers.py +++ b/autoytarchive/workers.py @@ -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()