Skip to content

Commit 80e6d1b

Browse files
add more explicit warning of error for global_temp_dir
1 parent 2e2bd0a commit 80e6d1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

DocToolsLLM/utils/loaders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def load_one_doc(
191191
The loader is cached"""
192192
text_splitter = get_splitter(task)
193193

194-
assert global_temp_dir[0] is temp_dir
194+
assert global_temp_dir[0] is temp_dir, f"Error handling temp dir: temp_dir is {temp_dir} but global_temp_dir is {global_temp_dir}"
195195

196196
if filetype == "youtube":
197197
docs = load_youtube_video(**kwargs)

0 commit comments

Comments
 (0)