private-gpt
private-gpt copied to clipboard
file path validator in ingest.py when reading .env
Fixes #140: Adds a file path validator to ingest.py
This pull request addresses the reported issues in #140 by adding a file validator to the ingest.py
module using the pathlib PATH module. Previously, when reading the .env
file, an exception was not raised immediately if the file was not found. This change ensures that an exception is raised at the appropriate location instead of waiting for an exception from another module.
These changes specifically resolve the issues experienced in WSL (which is the env mentioned in the issue and is my dev env).
TY!
LGTM, thanks for your contribution.
Closing by inactivity.