def check_jira_connection()

in jbi/jira/service.py [0:0]


    def check_jira_connection(self):
        try:
            if self.client.get_server_info(True) is None:
                return [checks.Error("Login fails", id="login.fail")]
        except requests.RequestException:
            return [checks.Error("Could not connect to server", id="jira.server.down")]
        return []