From 49bfea462bcceb8e5b921b942857678bc3a1f866 Mon Sep 17 00:00:00 2001 From: Leon Mergen Date: Wed, 20 Aug 2025 14:06:17 +0700 Subject: [PATCH] Add helpful error message + raise better exception --- quasardb/numpy/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/quasardb/numpy/__init__.py b/quasardb/numpy/__init__.py index d3c390de..bbecdfab 100644 --- a/quasardb/numpy/__init__.py +++ b/quasardb/numpy/__init__.py @@ -459,6 +459,10 @@ def _ensure_list(xs, cinfos): # of the array. n = _probe_length(xs) + if n is None: + logger.error("Unable to probe length: provided arrays: %s", xs) + raise ValueError("Unable to probe array length: all provided arrays None?") + ret = list() for i in range(len(cinfos)):