add coverage condition annotation (#1858)

This commit is contained in:
Ju4tCode
2023-03-29 11:57:33 +08:00
committed by GitHub
parent ae08568daf
commit 1213e89bf5
6 changed files with 39 additions and 8 deletions

View File

@ -541,7 +541,7 @@ class ShellCommandRule:
try:
args = self.parser.parse_args(state[SHELL_ARGV])
state[SHELL_ARGS] = args
except ArgumentError as e:
except ArgumentError as e: # pragma: py-gte-39
state[SHELL_ARGS] = ParserExit(status=2, message=str(e))
except ParserExit as e:
state[SHELL_ARGS] = e