Changed "|" to "or"

pull/58/head
Sheng 2019-01-19 16:57:03 +08:00
parent c35f801235
commit b4ca604518
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ class IndexHandler(MixinHandler, tornado.web.RequestHandler):
def get_hostname(self):
value = self.get_value('hostname')
if not (is_valid_hostname(value) | is_valid_ip_address(value)):
if not (is_valid_hostname(value) or is_valid_ip_address(value)):
raise InvalidValueError('Invalid hostname: {}'.format(value))
return value