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

fix: better error message when flask not installed #5398

Merged
merged 1 commit into from
Feb 27, 2022

Commits on Feb 25, 2022

  1. fix: better error message when flask not installed

    The dependencies for the AiiDA REST API are currently not installed by
    default - only when users request the `rest` extra.
    
    When users were starting the REST API without installing the extra, they
    were greeted by an unhelpful/unexpected error message
    
    	ModuleNotFoundError: No module named 'flask_restful'
    
    Here we catch ImportErrors upon starting the REST API and provide an
    error message that includes instructions on how to remedy the situation.
    For cases where the ImportError has another cause, the original
    exception is carried along as well.
    ltalirz committed Feb 25, 2022
    Configuration menu
    Copy the full SHA
    8d91e2e View commit details
    Browse the repository at this point in the history