Skip to content

Commit

Permalink
fix: KeyError
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Aug 17, 2024
1 parent 804a2f3 commit 8b09824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brownie/project/compiler/vyper.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def _generate_coverage_data(

if node["ast_type"] in ("Assert", "If") or (
node["ast_type"] == "Expr"
and node["value"]["func"].get("id", None) == "assert_modifiable"
and node["value"].get("func", {}).get("id", None) == "assert_modifiable"
):
# branch coverage
pc_list[-1]["branch"] = count
Expand Down

0 comments on commit 8b09824

Please sign in to comment.