1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

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()