Changed quotes

pull/4/head
Sheng 2017-11-20 18:01:40 +08:00
parent 5d0fad48ec
commit 62bd3175b6
1 changed files with 2 additions and 2 deletions

View File

@ -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):