private-gpt icon indicating copy to clipboard operation
private-gpt copied to clipboard

file path validator in ingest.py when reading .env

Open aHardReset opened this issue 1 year ago • 1 comments

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!

aHardReset avatar May 16 '23 07:05 aHardReset

LGTM, thanks for your contribution.

R-Y-M-R avatar May 17 '23 14:05 R-Y-M-R

Closing by inactivity.

aHardReset avatar May 24 '23 04:05 aHardReset