Skip to content

Improve error when importing certain modules in the cmdline package #7059

@edan-bainglass

Description

@edan-bainglass

Recently got

Critical: potential `verdi` speed problem: `aiida.orm.fields` module is imported which is not in: ('aiida.brokers', 'aiida.cmdline', 'aiida.common', 'aiida.manage', 'aiida.plugins', 'aiida.restapi')

Took a second to understand that it was due to me importing the orm package in the cmdline package. The above error could perhaps be a bit clearer. Will open a PR to improve.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions