def create_api_handler(self):
try:<EOL><INDENT>self.github = github3.login(username=config.data['<STR_LIT>'],<EOL>password=config.data['<STR_LIT>'])<EOL><DEDENT>except KeyError as e:<EOL><INDENT>raise config.NotConfigured(e)<EOL><DEDENT>logger.info("<STR_LIT>".format(self.github.ratelimit_remaining))<EOL>if hasattr(self.github, '<STR_LIT>'):<EOL><INDENT>self.github.set_user_agent('<STR_LIT>'.format(self.org_name, self.org_homepage))<EOL><DEDENT>try:<EOL><INDENT>self.org = self.github.organization(self.org_name)<EOL><DEDENT>except github3.GitHubError:<EOL><INDENT>logger.error("<STR_LIT>")<EOL>logger.info("<STR_LIT>" + str(self.github.ratelimit_remaining))<EOL><DEDENT>
Creates an api handler and sets it on self