From 135d63fc9802976a504dde9eb0caa0ddf55b210c Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 17 Jan 2020 14:42:33 +0100 Subject: check if exists --- cli/app/commands/cortex/upload_video.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cli/app/commands') diff --git a/cli/app/commands/cortex/upload_video.py b/cli/app/commands/cortex/upload_video.py index c0d2afd..4590a6c 100644 --- a/cli/app/commands/cortex/upload_video.py +++ b/cli/app/commands/cortex/upload_video.py @@ -34,7 +34,9 @@ def cli(ctx, opt_fp_in, opt_folder_id): fp_out = os.path.join(app_cfg.DIR_RENDERS, fn + '.mp4') export_video_final(opt_fp_in, fp_out) - + if fp_out is None: + return + if not os.path.exists(fp_out): print("No video found") return -- cgit v1.2.3-70-g09d2