mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-11 22:32: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())
|
session.mount('file://', FileAdapter())
|
||||||
|
|
||||||
try:
|
os.makedirs("doc-cache", exist_ok=True)
|
||||||
os.mkdir("doc-cache")
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
documents = [
|
documents = [
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue