Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: kronzter/openml-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: openml/openml-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 5 files changed
  • 1 contributor

Commits on Feb 20, 2026

  1. [ENH] Add OpenMLAuthenticationError for clearer API key error handl…

    …ing (openml#1570)
    
    ## Overview
    
    This PR introduces a new **`OpenMLAuthenticationError`** exception to
    clearly distinguish **authentication errors** (invalid or missing API
    key) from **authorization errors** (valid API key without sufficient
    permissions).
    
    ---
    
    ## Changes
    
    ### **New Exception**
    
    * Added **`OpenMLAuthenticationError`** in `exceptions.py`
    * Inherits from `OpenMLServerError` for consistency
    * Automatically appends helpful guidance with links to:
    
    * Getting an API key: [https://www.openml.org/](https://www.openml.org/)
      * OpenML authentication documentation
    * Includes a clear docstring explaining the difference between
    authentication and authorization errors
    
    ---
    
    ### **Updated Error Handling**
    
    * Updated `_api_calls.py` to:
    
    * Import and raise `OpenMLAuthenticationError` for authentication
    failures
    
    ---
    
    ### **Tests Updated**
    
    * Updated
    `test_authentication_endpoints_requiring_api_key_show_relevant_help_link`
    
    * Now expects `OpenMLAuthenticationError` instead of
    `OpenMLNotAuthorizedError`
    * Continues to assert that helpful guidance is included in the error
    message
    
    ---
    
    Fixes openml#1562
    Omswastik-11 authored Feb 20, 2026
    Configuration menu
    Copy the full SHA
    1bc9f15 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7feb2a3 View commit details
    Browse the repository at this point in the history
Loading