Beispiel #1
0
 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
Beispiel #2
0
 def _connect(self):
     self.conn = HLLConnection()
     self.conn.connect(self.config['host'], self.config['port'],
                       self.config['password'])