Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1621,7 +1621,7 @@ def poll_query_until(self,
dbname=None,
username=None,
max_attempts=0,
sleep_time=1,
sleep_time: typing.Union[int, float] = 1,
expected=True,
commit=True,
suppress=None):
Expand All @@ -1647,7 +1647,9 @@ def poll_query_until(self,
"""

# sanity checks
assert type(max_attempts) == int # noqa: E721
assert max_attempts >= 0
assert type(sleep_time) in [int, float]
assert sleep_time > 0
attempts = 0
while max_attempts == 0 or attempts < max_attempts:
Expand Down