From 28e3432180e6416ec2b6d0f301e5689e65640b83 Mon Sep 17 00:00:00 2001 From: SAY-5 Date: Mon, 11 May 2026 16:10:54 -0700 Subject: [PATCH] fix(cli): use os.makedirs(exist_ok=True) instead of bare except in load_sample_documents Fixes #869 Signed-off-by: SAY-5 --- trustgraph-cli/trustgraph/cli/load_sample_documents.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/trustgraph-cli/trustgraph/cli/load_sample_documents.py b/trustgraph-cli/trustgraph/cli/load_sample_documents.py index 0398864c..4d4224cc 100644 --- a/trustgraph-cli/trustgraph/cli/load_sample_documents.py +++ b/trustgraph-cli/trustgraph/cli/load_sample_documents.py @@ -28,10 +28,7 @@ session = requests.session() session.mount('file://', FileAdapter()) -try: - os.mkdir("doc-cache") -except: - pass +os.makedirs("doc-cache", exist_ok=True) documents = [