Skip to content

Commit

Permalink
Update primer3.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 authored Jan 14, 2025
1 parent ce10c4d commit 31c73fd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions prymer/primer3/primer3.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,7 @@ def design(self, design_input: Primer3Input) -> Primer3Result: # noqa: C901
# Check for any errors. Typically, these are in error_lines, but also the results can
# contain the PRIMER_ERROR key.
if "PRIMER_ERROR" in primer3_results:
if "PRIMER_ERROR" in primer3_results:
raise ValueError("Primer3 failed: " + primer3_results["PRIMER_ERROR"])
else:
raise ValueError("Primer3 failed")
raise ValueError("Primer3 failed: " + primer3_results["PRIMER_ERROR"])

match design_input.task:
case DesignPrimerPairsTask(): # Primer pair design
Expand Down

0 comments on commit 31c73fd

Please sign in to comment.