Closed sphuber closed 1 day ago
Perhaps the error message would be even better with a link to the docs which gives even more background information and tells users how they can configure the broker. That would require #6455 to be merged before that, because currently those docs don't exist yet.
Still, I am always a bit hesitant to add docs links in error messages since they can easily go stale. I know that SQLalchemy solves this somewhat by using shortened urls the referent of which can then be updated with redirects in case the documentation links change.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 77.83%. Comparing base (
ef60b66
) to head (351c671
). Report is 49 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Fixes #6374
The
aiida.engine.launch.submit
method was just raising a vagueAssertionError
in case the runner did not have a communicator, which is the case if it was constructed without a communicator which in turn happens for profiles that do not configure a broker.Since profiles without brokers are now supported and users are bound to try to submit anyway, the error message should be clearer.