Skip to content

Commit 1f79cd1

Browse files
committed
Fix garbled f-string in invalid param error messages
Remove spurious literal 'f' character before the interpolated variable in two ValueError messages, so users see the valid options clearly. Signed-off-by: suhr25 <suhridmarwah07@gmail.com>
1 parent 31423d0 commit 1f79cd1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

malariagen_data/anoph/hap_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def _prep_phasing_analysis_param(self, *, analysis: hap_params.analysis) -> str:
6464
return analysis
6565
else:
6666
raise ValueError(
67-
f"Invalid phasing analysis, must be one of f{self.phasing_analysis_ids}."
67+
f"Invalid phasing analysis, must be one of {self.phasing_analysis_ids}."
6868
)
6969

7070
@_check_types

malariagen_data/anoph/snp_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def _prep_site_mask_param(
117117
return site_mask
118118
else:
119119
raise ValueError(
120-
f"Invalid site mask, must be one of f{self.site_mask_ids}."
120+
f"Invalid site mask, must be one of {self.site_mask_ids}."
121121
)
122122

123123
def _prep_optional_site_mask_param(

0 commit comments

Comments
 (0)