From a67870aefd8a8aa099c6aadfeb3e454686dd53eb Mon Sep 17 00:00:00 2001 From: davidmezzetti <561939+davidmezzetti@users.noreply.github.com> Date: Wed, 8 Apr 2026 11:20:37 -0400 Subject: [PATCH] Update test --- src/python/txtai/pipeline/data/textractor.py | 2 +- test/python/testapi/testapipipeline.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/python/txtai/pipeline/data/textractor.py b/src/python/txtai/pipeline/data/textractor.py index 68865e78..cb4f13e7 100644 --- a/src/python/txtai/pipeline/data/textractor.py +++ b/src/python/txtai/pipeline/data/textractor.py @@ -104,7 +104,7 @@ class Textractor(Segmentation): # Safe open validation if not self.safecheck(path): - raise IOError(f"Safeopen URL validation failed: {path}") + raise IOError(f"Safeopen URL validation failed: path={os.path.realpath(path)}, safeopen={self.safeopen}") # Consider local files and HTTP urls valid return (path if exists or urlparse(path).scheme in ("http", "https") else None, exists) diff --git a/test/python/testapi/testapipipeline.py b/test/python/testapi/testapipipeline.py index 618f67b3..e68fe09f 100644 --- a/test/python/testapi/testapipipeline.py +++ b/test/python/testapi/testapipipeline.py @@ -58,6 +58,7 @@ tabular: # Text extraction textractor: + safeopen: /tmp/txtai # Text to speech texttospeech: