From 71bd14f06dced5de7a78c427c227a6c5e5755857 Mon Sep 17 00:00:00 2001 From: Luke Stephens <13975395+hakluke@users.noreply.github.com> Date: Tue, 4 Dec 2018 16:51:20 +1000 Subject: [PATCH] Converted max threads to integer to mitigate TypeError --- Interlace/lib/threader.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Interlace/lib/threader.py b/Interlace/lib/threader.py index cf5e9da..5786f4a 100644 --- a/Interlace/lib/threader.py +++ b/Interlace/lib/threader.py @@ -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: