From: Agam Rafaeli Date: Mon, 17 Dec 2018 16:18:55 +0000 (+0200) Subject: Correct location of line X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7eb52d39f9758572e6a3314865bb633260aa8e1;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Correct location of line In the last commit a line was mistakenly misplaced. This commit correctly places that line. --- 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):