From 50d7a19fce644e20afe043548961c5eaffdd3128 Mon Sep 17 00:00:00 2001 From: Andrew Plotkin Date: Sat, 22 Jun 2013 14:03:50 -0400 Subject: [PATCH] Fix issue 829 -- error message is displaying wrong incorrect result. --- tornado/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/web.py b/tornado/web.py index eade230ef..363c97c44 100644 --- a/tornado/web.py +++ b/tornado/web.py @@ -1142,7 +1142,7 @@ class RequestHandler(object): elif isinstance(result, Future): if result.done(): if result.result() is not None: - raise ValueError('Expected None, got %r' % result) + raise ValueError('Expected None, got %r' % result.result()) callback() else: # Delayed import of IOLoop because it's not available -- 2.47.2