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 = [