diff --git a/q2_feature_table/_summarize/_visualizer.py b/q2_feature_table/_summarize/_visualizer.py index 71ec93f..0a3a670 100644 --- a/q2_feature_table/_summarize/_visualizer.py +++ b/q2_feature_table/_summarize/_visualizer.py @@ -59,7 +59,7 @@ def tabulate_seqs(output_dir: str, data: DNAIterator, metadata_df.index) elif merge_method == 'strict': if set(metadata_df.index) != display_sequences: - raise Exception('Merge method is strict and IDs do not match') + raise ValueError('Merge method is strict and IDs do not match') if taxonomy is not None: for member in taxonomy.values(): if merge_method == 'union': @@ -69,8 +69,8 @@ def tabulate_seqs(output_dir: str, data: DNAIterator, member.index) elif merge_method == 'strict': if set(member.index) != display_sequences: - raise Exception('Merge method is strict and IDs do not \ - match') + raise ValueError( + 'Merge method is strict and IDs do not match') seq_len_stats = _compute_descriptive_stats(seq_lengths) _write_tsvs_of_descriptive_stats(seq_len_stats, output_dir)