Private GIT

Skip to content
Snippets Groups Projects
Commit 53d75c3b authored by miigotu's avatar miigotu
Browse files

Fix small bug in tornado, not catching AttributeError when no multiprocessing...

Fix small bug in tornado, not catching AttributeError when no multiprocessing is available and trying to check os.sysconfig on Windows

Signed-off-by: default avatarmiigotu <miigotu@gmail.com>
parent b5672022
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ def cpu_count():
pass
try:
return os.sysconf("SC_NPROCESSORS_CONF")
except ValueError:
except (ValueError, AttributeError):
pass
gen_log.error("Could not detect number of processors; assuming 1")
return 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment