changeset 926:612e33fd32a8

server (pages): fixed _prepare_render handling
author Goffi <goffi@goffi.org>
date Mon, 03 Apr 2017 01:00:29 +0200
parents e00151140f77
children bb4dfc2802c0
files src/server/server.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/server/server.py	Mon Apr 03 01:00:29 2017 +0200
+++ b/src/server/server.py	Mon Apr 03 01:00:29 2017 +0200
@@ -1658,7 +1658,7 @@
                 raise failure.Failure(exceptions.CancelError(u'subpage page is used'))
 
     def _prepare_render(self, dummy, request):
-        defer.maybeDeferred(self.prepare_render, self, request)
+        return defer.maybeDeferred(self.prepare_render, self, request)
 
     def _render_method(self, dummy, request):
         return defer.maybeDeferred(self.render_method, self, request)