

def init(self):
    while (not self.wrapper.halt):
        try:
            self.log.info('Connecting to IRC...')
            self.connect()
            t = threading.Thread(target=self.queue, args=())
            t.daemon = True
            t.start()
            self.handle()
        except:
            for line in traceback.format_exc().split('\n'):
                t.log.error(line)
            self.disconnect('Error in Wrapper.py - restarting')
        self.log.info('Disconnected from IRC')
        time.sleep(5)

dataset/ETHPy150Open benbaptist/minecraft-wrapper/src/irc.py IRC.init/VarMisuse@98/113 `self`->`t`