mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Fix for TypeError: write()
This commit is contained in:
parent
0c57676aed
commit
b3d46f77e9
1 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue