From b4c073cd4c5d20af2252e49377def6c31b39fa59 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 11 Aug 2019 19:32:55 +0200 Subject: except OSError: /usr/sbin/mysqld: cannot dynamically load executable --- src/facter.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/facter.py b/src/facter.py index 300e12f..647cd1f 100644 --- a/src/facter.py +++ b/src/facter.py @@ -30,7 +30,11 @@ def glibc_version_string(bin=None): # manpage says, "If filename is NULL, then the returned handle is for the # main program". This way we can let the linker do the work to figure out # which libc our process is actually using. - process_namespace = ctypes.CDLL(bin) + try: + process_namespace = ctypes.CDLL(bin) + except OSError: + return None + try: gnu_get_libc_version = process_namespace.gnu_get_libc_version except AttributeError: -- cgit v1.2.3