This commit is contained in:
evilchili 2024-02-17 16:58:33 -08:00
parent 3a540ff597
commit 185375b51e

View File

@ -125,7 +125,6 @@ class DataSource:
flattened = [] flattened = []
if not self.data[option]: if not self.data[option]:
return [option] return [option]
raise ValueError(f"There is no data for '{option}' in your data source.")
if hasattr(self.data[option], 'keys'): if hasattr(self.data[option], 'keys'):
# if the option is a dict, we assume the values are lists; we select a random item # if the option is a dict, we assume the values are lists; we select a random item