try again
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Roy Olav Purser 2022-02-05 22:03:32 +01:00
parent 52f51bc6d5
commit 9294cd54ed
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -150,21 +150,21 @@ class MainHandler(tornado.web.RequestHandler):
self.redirect(url=video_info["upstream"], status=303)
except NoDataError:
self.set_status(404)
self.write("HTML template missing.")
self.write("Video not found.")
except MissingTemplateError:
self.set_status(404)
self.write("Video not found.")
self.write("HTML template missing.")
async def handle_render(self, handler):
try:
video_info, meta, title = await self.get_data(handler)
except NoDataError:
self.set_status(404)
self.write("HTML template missing.")
self.write("Video not found.")
return
except MissingTemplateError:
self.set_status(404)
self.write("Video not found.")
self.write("HTML template missing.")
return
script = config.template_script.generate(info=json.dumps(video_info))