add error
This commit is contained in:
parent
46a8dd89ba
commit
76a2947e7e
@ -21,7 +21,10 @@ class MainHandler(tornado.web.RequestHandler):
|
||||
except Exception as e:
|
||||
self.write(str(e))
|
||||
else:
|
||||
self.redirect(endpoint, status=303)
|
||||
if endpoint is None:
|
||||
self.write("stream not found")
|
||||
else:
|
||||
self.redirect(endpoint, status=303)
|
||||
try:
|
||||
app_web = tornado.web.Application([(tornado.routing.AnyMatches(), MainHandler)])
|
||||
app_web.listen(8080)
|
||||
|
Loading…
Reference in New Issue
Block a user