From 91c60e37ea8df009d953d250c4d8299efc55a813 Mon Sep 17 00:00:00 2001 From: Austin Mroz Date: Sat, 30 Dec 2023 17:50:34 -0600 Subject: [PATCH] Raise exception on file not found --- date_integer_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/date_integer_node.py b/date_integer_node.py index 56f56ed..58de926 100644 --- a/date_integer_node.py +++ b/date_integer_node.py @@ -537,7 +537,7 @@ class VideoPathMetaExtraction: def process_video_file(self, video_file_path): # Check if the file exists if not os.path.exists(video_file_path): - return ("File not found", {}) + raise Exception(f"File not found: {video_file_path}") # Extract metadata from the video metadata = self.extract_metadata(video_file_path)