From 8b09824df47c6b03c46d0d59e503c8e6d8934980 Mon Sep 17 00:00:00 2001 From: BobTheBuidler Date: Sat, 17 Aug 2024 01:14:33 +0000 Subject: [PATCH] fix: KeyError --- brownie/project/compiler/vyper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brownie/project/compiler/vyper.py b/brownie/project/compiler/vyper.py index 3a94012cb..794b1afc0 100644 --- a/brownie/project/compiler/vyper.py +++ b/brownie/project/compiler/vyper.py @@ -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