MCPcopy
hub / github.com/mne-tools/mne-python / raise_bad_deps_messages

Function raise_bad_deps_messages

tools/check_pyproject_helpers.py:57–61  ·  view source on GitHub ↗

Raise a RuntimeError if there are any bad messages to report.

(bad_messages)

Source from the content-addressed store, hash-verified

55
56
57def raise_bad_deps_messages(bad_messages):
58 """Raise a RuntimeError if there are any bad messages to report."""
59 bad_messages = [message for message in bad_messages if message != ""]
60 if len(bad_messages) > 0:
61 raise RuntimeError("\n\n".join(bad_messages))

Calls

no outgoing calls

Tested by

no test coverage detected