From 5068cda2cf3100c90324f3457fb1a3ef097ad049 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 14 Aug 2023 09:23:00 -0400 Subject: [PATCH] Catch another sort of exception for non-rpm distributions subprocess may produce a different sort of exception if rpm doesn't exist at all --- imgutil/imgutil | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgutil/imgutil b/imgutil/imgutil index 23d840e2..faaf21c7 100644 --- a/imgutil/imgutil +++ b/imgutil/imgutil @@ -1011,7 +1011,7 @@ def fingerprint_host_el(args, hostpath='/'): release = v elif k == 'Version': version = v - except subprocess.SubprocessError: + except (subprocess.SubprocessError, FileNotFoundError): return None if 'el8' not in release and 'el7' not in release and 'el9' not in release: return None