(s: str)
| 633 | """ |
| 634 | |
| 635 | def exit_code_from_str_or_skip(s: str) -> ExitCode | None: |
| 636 | try: |
| 637 | return ExitCode.from_str(s) |
| 638 | except (KeyError, ValueError): |
| 639 | out.warn(f"WARN: no_raise value `{s}` is not a valid exit code. Skipping.") |
| 640 | return None |
| 641 | |
| 642 | return [ |
| 643 | code.value |
no test coverage detected