diff --git a/copyparty/__main__.py b/copyparty/__main__.py index 420be3ac..30662e1a 100644 --- a/copyparty/__main__.py +++ b/copyparty/__main__.py @@ -335,7 +335,7 @@ def run_argparse(argv: list[str], formatter: Any, retry: bool) -> argparse.Names except: fk_salt = "hunter2" - cores = os.cpu_count() if hasattr(os, "cpu_count") else 4 + cores = (os.cpu_count() if hasattr(os, "cpu_count") else 0) or 4 hcores = min(cores, 3) # 4% faster than 4+ on py3.9 @ r5-4500U sects = [ diff --git a/copyparty/__version__.py b/copyparty/__version__.py index ed707384..025850b6 100644 --- a/copyparty/__version__.py +++ b/copyparty/__version__.py @@ -1,6 +1,6 @@ # coding: utf-8 -VERSION = (1, 3, 13) +VERSION = (1, 3, 14) CODENAME = "god dag" BUILD_DT = (2022, 8, 15)