Skip to content

Commit deb7b9d

Browse files
fix ruff S101 assert warning
1 parent fbb7be8 commit deb7b9d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

integrations/supabase/src/haystack_integrations/components/downloaders/supabase/supabase_bucket_downloader.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ def run(self, sources: list[str]) -> dict[str, list[ByteStream]]:
8585
"""
8686
if self._client is None:
8787
self.warm_up()
88-
assert self._client is not None
88+
if self._client is None:
89+
msg = "Supabase client is not initialized. Call warm_up() before run()."
90+
raise RuntimeError(msg)
8991
streams = []
9092

9193
for path in sources:

0 commit comments

Comments
 (0)