From 9754a1423ec21c922e692e96127ac4afb14a05c1 Mon Sep 17 00:00:00 2001 From: Charles Cooper Date: Sat, 16 Dec 2023 08:56:31 -0500 Subject: [PATCH] fix: missing not None check --- boa/vyper/contract.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boa/vyper/contract.py b/boa/vyper/contract.py index b7b79284..bd2fc424 100644 --- a/boa/vyper/contract.py +++ b/boa/vyper/contract.py @@ -307,8 +307,8 @@ def _check(cond, msg=""): _check( err == frame.pretty_vm_reason or err == frame.error_detail - or err == frame.dev_reason.reason_str, - "does not match {args}", + or (frame.dev_reason and err == frame.dev_reason.reason_str), + f"does not match {args}", ) return