add error
This commit is contained in:
parent
46a8dd89ba
commit
76a2947e7e
@ -20,6 +20,9 @@ class MainHandler(tornado.web.RequestHandler):
|
|||||||
endpoint = stream.url
|
endpoint = stream.url
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.write(str(e))
|
self.write(str(e))
|
||||||
|
else:
|
||||||
|
if endpoint is None:
|
||||||
|
self.write("stream not found")
|
||||||
else:
|
else:
|
||||||
self.redirect(endpoint, status=303)
|
self.redirect(endpoint, status=303)
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user