diff --git a/jupyterhub/orm.py b/jupyterhub/orm.py index 665388b5..689c1cd8 100644 --- a/jupyterhub/orm.py +++ b/jupyterhub/orm.py @@ -103,12 +103,11 @@ class Server(Base): socket.create_connection((self.ip or 'localhost', self.port)) except socket.error as e: if e.errno == errno.ECONNREFUSED: - return True + return False else: raise else: return True - class Proxy(Base):