Skip to content

Commit

Permalink
fix: Fix typo in NCPUs selection
Browse files Browse the repository at this point in the history
  • Loading branch information
adigitoleo committed Oct 25, 2023
1 parent a8f0465 commit de48c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pydrex/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def default_ncpus():
return int(out.stdout.strip()) - 1
case "Windows":
return int(os.environ["NUMBER_OF_PROCESSORS"]) - 1
except AttributeError or CalledProcessError or KeyError:
except AttributeError or subprocess.CalledProcessError or KeyError:
return 1


Expand Down

0 comments on commit de48c4b

Please sign in to comment.