Skip to content

Commit

Permalink
fix: handle when options are not passed
Browse files Browse the repository at this point in the history
  • Loading branch information
iranzo committed Oct 27, 2022
1 parent abe0246 commit ec847a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion risuclient/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ec847a1

Please sign in to comment.