'Verify that in case of any exception it logs the error and return.'

@httpretty.activate
@mock.patch('edx_rest_api_client.client.EdxRestApiClient.__init__')
def test_get_credit_provider_display_names_method_with_exception(self, mock_init):

    mock_init.side_effect = Exception
    response = get_credit_provider_display_names(self.course_key)
    self.assertTrue(mock_init.called)
    self.assertEqual(response, None)
