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 bug in aiida.engine.utils.instantiate_process #5952

Merged
merged 1 commit into from
Apr 3, 2023

Commits on Mar 31, 2023

  1. Fix bug in aiida.engine.utils.instantiate_process

    If the `process` argument receives an unsupported type that is not a
    class, the final check `issubclass(process, Process)` would raise:
    
        TypeError: issubclass() arg 1 must be a class
    
    which is not very useful to the user. This is fixed by first checking
    that the argument is a class to begin with. At least now when an invalid
    type is provided, the exception contains the invalid type:
    
        invalid process <class \'bool\'>, needs to be Process or ProcessBuilder'
    sphuber committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    cb7049b View commit details
    Browse the repository at this point in the history