]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Correct location of line 4409/head
authorAgam Rafaeli <agam.rafaeli@gmail.com>
Mon, 17 Dec 2018 16:18:55 +0000 (18:18 +0200)
committerAgam Rafaeli <agam.rafaeli@gmail.com>
Mon, 17 Dec 2018 16:18:55 +0000 (18:18 +0200)
In the last commit a line was mistakenly misplaced. This commit
correctly places that line.

lib/sqlalchemy/util/compat.py

index 6e1953737c06ddfad87ed66db655f506bf2f6c6d..b01471edf917486fb647d70e7bcbc1dfc1f617ef 100644 (file)
@@ -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):