Can happen if you already filtered the genes so all the column is false, or more likely taken the dataset from someone else on the internet who did the filtering already.
mc.tl.filter_data(cadata, var_masks=['&excluded_gene'])[0])
Error: TypeError: 'NoneType' object is not subscriptable