From fc261ce64c60095b49c9579bc0e094358a8ed0b0 Mon Sep 17 00:00:00 2001 From: tserg <8017125+tserg@users.noreply.github.com> Date: Sat, 23 Mar 2024 17:22:55 +0800 Subject: [PATCH] smol fix --- vyper/ast/parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vyper/ast/parse.py b/vyper/ast/parse.py index a4a8617730..690f88d3b5 100644 --- a/vyper/ast/parse.py +++ b/vyper/ast/parse.py @@ -60,7 +60,7 @@ def parse_to_ast_with_settings( py_ast = python_ast.parse(python_source) except SyntaxError as e: # TODO: Ensure 1-to-1 match of source_code:reformatted_code SyntaxErrors - raise SyntaxException(str(e), vyper_source, e.lineno, e.offset) from e + raise SyntaxException(str(e), vyper_source, e.lineno, e.offset) from None # Add dummy function node to ensure local variables are treated as `AnnAssign` # instead of state variables (`VariableDecl`)