Skip to content

Commit 1b2ef11

Browse files
authored
Merge pull request #980 from suhr25/fix/invalid-param-error-messages
Fix: remove stray `f` in ValueError messages
2 parents 5d60f71 + 4d53b83 commit 1b2ef11

2 files changed

Lines changed: 2 additions & 4 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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,7 @@ def _prep_site_mask_param(
116116
elif site_mask in self.site_mask_ids:
117117
return site_mask
118118
else:
119-
raise ValueError(
120-
f"Invalid site mask, must be one of f{self.site_mask_ids}."
121-
)
119+
raise ValueError(f"Invalid site mask, must be one of {self.site_mask_ids}.")
122120

123121
def _prep_optional_site_mask_param(
124122
self,

0 commit comments

Comments
 (0)