mirror of
https://github.com/codingo/Interlace.git
synced 2026-01-25 01:44:48 +01:00
Converted max threads to integer to mitigate TypeError
This commit is contained in:
@@ -25,6 +25,9 @@ class Worker(object):
|
||||
|
||||
class Pool(object):
|
||||
def __init__(self, max_workers, queue, timeout, output):
|
||||
|
||||
# convert stdin input to integer
|
||||
max_workers = int(max_workers)
|
||||
|
||||
# check if there are enough workers
|
||||
if max_workers <= 0:
|
||||
|
||||
Reference in New Issue
Block a user