Skip to content

Commit

Permalink
e.orig is always set for OperationalError
Browse files Browse the repository at this point in the history
  • Loading branch information
spicy-sauce committed Dec 2, 2024
1 parent df129f9 commit e4fe93b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/datayoga_core/blocks/relational/write/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e4fe93b

Please sign in to comment.