mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 17:05:41 +01:00
fix: update exception error
This commit is contained in:
parent
cbddc54dcd
commit
b927165def
1 changed files with 2 additions and 1 deletions
|
|
@ -26,7 +26,8 @@ class LocalIngestWorker:
|
||||||
|
|
||||||
def _validate_folder(self, folder_path: Path) -> None:
|
def _validate_folder(self, folder_path: Path) -> None:
|
||||||
if not self.is_local_ingestion_enabled:
|
if not self.is_local_ingestion_enabled:
|
||||||
raise ValueError("Local ingestion is disabled")
|
raise ValueError("Local ingestion is disabled."
|
||||||
|
"You can enable it in settings `ingestion.enabled`")
|
||||||
|
|
||||||
# Allow all folders if wildcard is present
|
# Allow all folders if wildcard is present
|
||||||
if "*" in self.allowed_local_folders:
|
if "*" in self.allowed_local_folders:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue