improve git load

main
Gustav von Zitzewitz 1 year ago
parent 614635ed04
commit 5ecd2583f2

@ -128,10 +128,10 @@ def load_git(data_source):
)
break
except Exception as e:
logger.error(f"error loading git: {e}")
if os.path.exists(repo_path):
# cleanup repo afterwards
shutil.rmtree(repo_path)
logger.error(f"Error loading git: {e}")
if os.path.exists(repo_path):
# cleanup repo afterwards
shutil.rmtree(repo_path)
return docs

Loading…
Cancel
Save