From c1ed3e36ca62d3d0fbb8bee78cee512551f615f0 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Tue, 23 May 2023 08:59:05 +0200 Subject: [PATCH] fix calling _get_diagnostics if python versions do not match --- python/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/__init__.py b/python/__init__.py index b97aa91b..527a2ed2 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -26,7 +26,7 @@ def _check_python_version(): compile_version = f"{config.PYTHON_VERSION_MAJOR}.{config.PYTHON_VERSION_MINOR}" if sys_version != compile_version: - print(get_diagnostics(), file=sys.stderr) + print(_get_diagnostics(), file=sys.stderr) raise RuntimeError(f"Python version mismatch: compile-time version is {compile_version}, run-time version is {sys_version}") _check_python_version()