Skip to content

Commit 121cb5e

Browse files
authored
Merge pull request #15 from pomponchik/develop
0.0.10
2 parents 6f02ec4 + b9f3939 commit 121cb5e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

cantok/tokens/abstract_token.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ def is_cancelled(self, direct: bool = True) -> bool:
8787

8888
async def wait(self, step: Union[int, float] = 0.0001, timeout: Optional[Union[int, float]] = None) -> None:
8989
if step < 0:
90-
raise ValueError
90+
raise ValueError('The token polling iteration time cannot be less than zero.')
9191
if timeout is not None and timeout < 0:
92-
raise ValueError
92+
raise ValueError('The total timeout of waiting cannot be less than zero.')
9393
if timeout is not None and step > timeout:
94-
raise ValueError
94+
raise ValueError('The total timeout of waiting cannot be less than the time of one iteration of the token polling.')
9595

9696
if timeout is None:
9797
from cantok import SimpleToken

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "cantok"
7-
version = "0.0.9"
7+
version = "0.0.10"
88
authors = [
99
{ name="Evgeniy Blinov", email="zheni-b@yandex.ru" },
1010
]

0 commit comments

Comments
 (0)