mirror of https://github.com/huashengdun/webssh
Changed quotes
parent
5d0fad48ec
commit
62bd3175b6
4
main.py
4
main.py
|
@ -144,12 +144,12 @@ class IndexHandler(tornado.web.RequestHandler):
|
|||
if 0 < port < 65536:
|
||||
return port
|
||||
|
||||
raise ValueError("Invalid port {}".format(value))
|
||||
raise ValueError('Invalid port {}'.format(value))
|
||||
|
||||
def get_value(self, name):
|
||||
value = self.get_argument(name)
|
||||
if not value:
|
||||
raise ValueError("Empty {}".format(name))
|
||||
raise ValueError('Empty {}'.format(name))
|
||||
return value
|
||||
|
||||
def get_args(self):
|
||||
|
|
Loading…
Reference in New Issue