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