Converted max threads to integer to mitigate TypeError

This commit is contained in:
Luke Stephens
2018-12-04 16:51:20 +10:00
committed by GitHub
parent fe1bb66235
commit 71bd14f06d

View File

@@ -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: