diff --git a/vyper/ast/nodes.py b/vyper/ast/nodes.py index 0bd5e4d23a..82afcb9217 100644 --- a/vyper/ast/nodes.py +++ b/vyper/ast/nodes.py @@ -1319,7 +1319,10 @@ def is_terminus(self): # cursed import cycle! from vyper.builtins.functions import get_builtin_functions - func_name = self.func.id + func_name = self.func.get("id") + if not func_name: + return False + builtin_t = get_builtin_functions().get(func_name) return getattr(builtin_t, "_is_terminus", False)