mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-08 12:52:12 +02:00
fix(cli): use os.makedirs(exist_ok=True) instead of bare except in load_sample_documents
Fixes #869 Signed-off-by: SAY-5 <say.apm35@gmail.com>
This commit is contained in:
parent
159b1e2824
commit
28e3432180
1 changed files with 1 additions and 4 deletions
|
|
@ -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 = [
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue