Merge pull request #2 from codingo/hakluke-bugfix

Converted max threads to integer to mitigate TypeError
This commit is contained in:
Michael Skelton
2018-12-04 17:10:11 +10:00
committed by GitHub

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: