def __init__(self, jira_file):
        try:
            with open(jira_file) as jf:
                data = jf.read()
                data = yaml.load(data)
                self.account = data['account']
                self.password = data['password']
                self.project = data['project']
                self.server = data['server']
                self.issue_type = data['issue_type']
                self.url = data['url']
                self.disable_transitions = data.get('disable_transitions', False)
        except __HOLE__ as e:
            raise Exception('JIRA sync configuration missing required field: {}'.format(e))
        except IOError as e:
            raise Exception('Error opening JIRA sync configuration file: {}'.format(e))
        except yaml.scanner.ScannerError as e:
            raise Exception('JIRA sync configuration file contains malformed YAML: {}'.format(e))

        try:
            self.client = JIRA(self.server, basic_auth=(self.account, self.password))
        except Exception as e:
            raise Exception("Error connecting to JIRA: {}".format(str(e)[:1024]))
dataset/ETHPy150Open Netflix/security_monkey/security_monkey/jirasync.py/JiraSync.__init__