We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 638d478 commit 4175792Copy full SHA for 4175792
src/thread/thread.py
@@ -368,8 +368,10 @@ def __init__(
368
369
Raises
370
------
371
+ AssertionError: invalid `dataset`
372
AssertionError: invalid `max_threads`
373
"""
374
+ assert len(dataset) > 0, 'dataset cannot be empty'
375
assert 0 <= max_threads, 'max_threads cannot be set to 0'
376
377
self._threads = []
0 commit comments