From a7eb52d39f9758572e6a3314865bb633260aa8e1 Mon Sep 17 00:00:00 2001 From: Agam Rafaeli Date: Mon, 17 Dec 2018 18:18:55 +0200 Subject: [PATCH] Correct location of line In the last commit a line was mistakenly misplaced. This commit correctly places that line. --- lib/sqlalchemy/util/compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sqlalchemy/util/compat.py b/lib/sqlalchemy/util/compat.py index 6e1953737c..b01471edf9 100644 --- a/lib/sqlalchemy/util/compat.py +++ b/lib/sqlalchemy/util/compat.py @@ -283,6 +283,7 @@ def nested(*managers): exits = [] vars = [] + exc = (None, None, None) try: for mgr in managers: exit = mgr.__exit__ @@ -302,7 +303,6 @@ def nested(*managers): exc = sys.exc_info() if exc != (None, None, None): reraise(exc[0], exc[1], exc[2]) - exc = (None, None, None) def raise_from_cause(exception, exc_info=None): -- 2.47.3