提交 b5377aeb 编写于 作者: H hauntsaninja

nope

上级 e995f256
......@@ -22,7 +22,7 @@ def glibc_version_string_confstr() -> Optional[str]:
return None
# os.confstr("CS_GNU_LIBC_VERSION") returns a string like "glibc 2.17":
_, version = gnu_libc_version.split()
except (OSError, ValueError):
except (AttributeError, OSError, ValueError):
# os.confstr() or CS_GNU_LIBC_VERSION not available (or a bad value)...
return None
return version
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册