Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error message when sqlite URL uses relative path #36774

Merged
merged 1 commit into from
Jan 14, 2024

Commits on Jan 14, 2024

  1. Better error message when sqlite URL uses relative path

    When sqlite URL uses relative path, the error printed is quite
    cryptic:
    
    ```
    sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file
    ```
    
    This might easily happen for example when you are in a hurry and put
    relative value in your AIRFLOW_HOME.
    
    This PR checks if sql is relative and throws more appropriate and
    explicit message what is wrong.
    potiuk committed Jan 14, 2024
    Configuration menu
    Copy the full SHA
    385f23a View commit details
    Browse the repository at this point in the history