mirror of
https://github.com/Hopiu/djLint.git
synced 2026-04-11 17:40:59 +00:00
fix mypy error
os.cpu_count can return None.
This commit is contained in:
parent
93dc01f875
commit
af646f42e0
1 changed files with 1 additions and 1 deletions
|
|
@ -264,7 +264,7 @@ def main(
|
|||
if temp_file is None or (reformat is False and check is False):
|
||||
echo()
|
||||
|
||||
worker_count = os.cpu_count()
|
||||
worker_count = os.cpu_count() or 1
|
||||
|
||||
if sys.platform == "win32":
|
||||
# Work around https://bugs.python.org/issue26903
|
||||
|
|
|
|||
Loading…
Reference in a new issue