Fix for TypeError: write()

This commit is contained in:
echel0n 2014-06-29 03:07:25 -07:00
parent 0c57676aed
commit b3d46f77e9

View file

@ -220,7 +220,9 @@ class MainHandler(RequestHandler):
self.redirect(url)
def get(self, *args, **kwargs):
self.write(self._dispatch())
response = self._dispatch()
if response:
self.write(response)
def post(self, *args, **kwargs):
self._dispatch()