From: Ben Darnell Date: Mon, 18 Feb 2013 05:28:05 +0000 (-0500) Subject: Ensure the result variable is initialized even when an exception is handled. X-Git-Tag: v3.0.0~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96f654ed226fc28c0654d9e0537bf2d1d48ca89e;p=thirdparty%2Ftornado.git Ensure the result variable is initialized even when an exception is handled. --- diff --git a/tornado/concurrent.py b/tornado/concurrent.py index 502e8a64c..2ca05901d 100644 --- a/tornado/concurrent.py +++ b/tornado/concurrent.py @@ -156,6 +156,7 @@ def return_future(f): return True exc_info = None with ExceptionStackContext(handle_error): + result = None try: result = f(*args, **kwargs) except: