Skip to content

Commit 6e90b71

Browse files
authored
Merge pull request #2 from codingo/hakluke-bugfix
Converted max threads to integer to mitigate TypeError
2 parents fe1bb66 + 71bd14f commit 6e90b71

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Interlace/lib/threader.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ def run_task(task):
2525

2626
class Pool(object):
2727
def __init__(self, max_workers, queue, timeout, output):
28+
29+
# convert stdin input to integer
30+
max_workers = int(max_workers)
2831

2932
# check if there are enough workers
3033
if max_workers <= 0:

0 commit comments

Comments
 (0)