def run(self):
if self.args.roster_cache and os.path.exists(self.args.roster_cache):<EOL><INDENT>logging.info("<STR_LIT>"<EOL>.format(self.args.roster_cache))<EOL>try:<EOL><INDENT>self.client.roster_client.load_roster(self.args.roster_cache)<EOL><DEDENT>except (IOError, ValueError) as err:<EOL><INDENT>logging.error("<STR_LIT>".format(err))<EOL><DEDENT><DEDENT>self.client.connect()<EOL>self.client.run()<EOL>
Request client connection and start the main loop.