Skip to content

Commit f07e071

Browse files
committed
vect_by_cat options issue fix
1 parent e91e68d commit f07e071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

processors/text-analysis/vectorise_by_cat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def get_options(cls, parent_dataset=None, user=None):
117117
if not parent_dataset:
118118
return options
119119
category_dataset = cls.get_category_dataset(parent_dataset)
120-
if not category_dataset:
120+
if not category_dataset or not category_dataset.get_columns():
121121
return options
122122
cat_columns = {c: c for c in sorted(category_dataset.get_columns())}
123123
options.update({

0 commit comments

Comments
 (0)