Skip to content

Commit

Permalink
vect_by_cat options issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dale-wahl committed Jan 9, 2025
1 parent e91e68d commit f07e071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processors/text-analysis/vectorise_by_cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def get_options(cls, parent_dataset=None, user=None):
if not parent_dataset:
return options
category_dataset = cls.get_category_dataset(parent_dataset)
if not category_dataset:
if not category_dataset or not category_dataset.get_columns():
return options
cat_columns = {c: c for c in sorted(category_dataset.get_columns())}
options.update({
Expand Down

0 comments on commit f07e071

Please sign in to comment.