def _connect(self): self.conn = HLLConnection() try: self.conn.connect(self.config["host"], int(self.config["port"]), self.config["password"]) except (TypeError, ValueError) as e: logger.critical("Invalid connection information") raise
def _connect(self): self.conn = HLLConnection() self.conn.connect(self.config['host'], self.config['port'], self.config['password'])