Skip to content

Commit b9f1b02

Browse files
committed
fix _validate_concurrency
1 parent b6e4fad commit b9f1b02

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/crawlee/autoscaling/_concurrency_system.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131

3232

3333
def _validate_concurrency(value: int, name: str) -> int:
34-
"""Check that a retuned concurrency bound is an integer of at least 1."""
35-
if not isinstance(value, int) or value < 1:
36-
raise ValueError(f'{name} must be an integer of at least 1')
34+
"""Check that a retuned concurrency bound is at least 1."""
35+
if value < 1:
36+
raise ValueError(f'{name} must be at least 1')
3737

3838
return value
3939

0 commit comments

Comments
 (0)