mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 20:12:55 +01:00
fix: black
This commit is contained in:
parent
b927165def
commit
fe2f61c7f8
1 changed files with 4 additions and 2 deletions
|
|
@ -26,8 +26,10 @@ 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(
|
||||||
"You can enable it in settings `ingestion.enabled`")
|
"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