From ec847a1aabc9162ab9dad76c60fee2a336877b74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Iranzo=20G=C3=B3mez?= Date: Fri, 28 Oct 2022 01:28:06 +0200 Subject: [PATCH] fix: handle when options are not passed --- risuclient/shell.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/risuclient/shell.py b/risuclient/shell.py index f6ce6a592..5f3ee96d0 100755 --- a/risuclient/shell.py +++ b/risuclient/shell.py @@ -667,7 +667,10 @@ def dorisu( os.environ["CITELLUS_TMP"] = "%s" % tempfile.mkdtemp() # Set pool for same processes as CPU cores - p = Pool(options.numproc) + if options is not None: + p = Pool(options.numproc) + else: + p = Pool(cpu_count()) # We've save path, use it if savepath: