From b4ca604518f3656ac73f54b2513e6812fee206a0 Mon Sep 17 00:00:00 2001 From: Sheng Date: Sat, 19 Jan 2019 16:57:03 +0800 Subject: [PATCH] Changed "|" to "or" --- webssh/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webssh/handler.py b/webssh/handler.py index a536a82..8d1d5d2 100644 --- a/webssh/handler.py +++ b/webssh/handler.py @@ -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