Skip to content

Commit ca91564

Browse files
committed
Fix raw string in cohort_diversity_stats error message
Replace r"..." with f"..." so the cohort value is interpolated into the TypeError message instead of showing a literal placeholder. Signed-off-by: suhr25 <suhridmarwah07@gmail.com>
1 parent 27ac08c commit ca91564

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

malariagen_data/anopheles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ def cohort_diversity_stats(
10661066
cohort_label, cohort_query = cohort
10671067

10681068
else:
1069-
raise TypeError(r"invalid cohort parameter: {cohort!r}")
1069+
raise TypeError(f"invalid cohort parameter: {cohort!r}")
10701070

10711071
debug("access allele counts")
10721072
ac = self.snp_allele_counts(

0 commit comments

Comments
 (0)