From e4fe93b991cc3f35bdb55d068c73d5c32152a1f0 Mon Sep 17 00:00:00 2001 From: spicy-sauce Date: Mon, 2 Dec 2024 14:54:12 +0200 Subject: [PATCH] e.orig is always set for OperationalError --- core/src/datayoga_core/blocks/relational/write/block.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/datayoga_core/blocks/relational/write/block.py b/core/src/datayoga_core/blocks/relational/write/block.py index 0524e1f8..0e1720e3 100644 --- a/core/src/datayoga_core/blocks/relational/write/block.py +++ b/core/src/datayoga_core/blocks/relational/write/block.py @@ -186,7 +186,7 @@ def execute(self, statement: Any, records: List[Dict[str, Any]]): 2055, # CR_SERVER_LOST_EXTENDED ) - if e.orig and e.orig.args[0] in mysql_conn_errors: + if e.orig.args[0] in mysql_conn_errors: connected = False raise