Skip to content

Commit

Permalink
Merge pull request #290 from espressif/fix/error_message_of_int_ge_1
Browse files Browse the repository at this point in the history
  • Loading branch information
hfudev authored May 7, 2024
2 parents 7206ed1 + 0b34f50 commit 2e58a9a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
File renamed without changes.
1 change: 0 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
:parser: myst_parser.sphinx_

.. toctree::
:maxdepth: 2
:caption: Key Concepts
:glob:
:hidden:
Expand Down
5 changes: 2 additions & 3 deletions pytest-embedded/pytest_embedded/plugin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import argparse
import contextlib
import dbm
import functools
Expand All @@ -9,7 +10,6 @@
import os
import shelve
import subprocess
import sys
import tempfile
import typing as t
import xml.dom.minidom
Expand Down Expand Up @@ -295,8 +295,7 @@ def _gte_one_int(v) -> int:
if v >= 1:
return v

print('"count" value should be a integer greater or equal to 1')
sys.exit(1)
raise argparse.ArgumentTypeError('should be a integer greater or equal to 1')


def _str_bool(v: str) -> t.Union[bool, str, None]:
Expand Down

0 comments on commit 2e58a9a

Please sign in to comment.