Skip to content

Commit

Permalink
MNT/DOC: adjust&doc a pyfastg should-never-happen
Browse files Browse the repository at this point in the history
  • Loading branch information
fedarko committed Mar 31, 2023
1 parent 9ef9d65 commit 828ba67
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions metagenomescope/assembly_graph_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,10 +523,11 @@ def parse_fastg(filename):
elif suffix == "-":
g.nodes[n]["orientation"] = "-"
else:
raise GraphParsingError(
(
"Node {} in parsed FASTG file doesn't have an orientation?"
).format(n)
# shouldn't happen, unless pyfastg breaks or changes its behavior
# (but it's useful to have this check anyway, just to make this
# bulletproof in case i forget and break something later lol)
raise WeirdError(
f"Node {n} in parsed FASTG file doesn't have an orientation?"
)
return g

Expand Down

0 comments on commit 828ba67

Please sign in to comment.