Skip to content

Commit

Permalink
BUG: improve error message formatting in feature-table tabulate-seqs (
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenjp authored Dec 21, 2023
1 parent a9e47ba commit 1987eb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions q2_feature_table/_summarize/_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand All @@ -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)
Expand Down

0 comments on commit 1987eb0

Please sign in to comment.