handle datasets with one column only

This commit is contained in:
evilchili
2024-02-17 16:57:51 -08:00
parent 4922eeb3e6
commit 3a540ff597
2 changed files with 14 additions and 0 deletions
+1
View File
@@ -124,6 +124,7 @@ class DataSource:
# If there is no data for the specified option, stop now.
flattened = []
if not self.data[option]:
return [option]
raise ValueError(f"There is no data for '{option}' in your data source.")
if hasattr(self.data[option], 'keys'):