From 504d6943a0c55564828453c08b5b47a1fe8b894b Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Tue, 16 Jan 2024 20:20:41 +0300 Subject: [PATCH] Fix style (I) --- kernel_hardening_checker/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel_hardening_checker/__init__.py b/kernel_hardening_checker/__init__.py index a092e5c..597a964 100644 --- a/kernel_hardening_checker/__init__.py +++ b/kernel_hardening_checker/__init__.py @@ -281,7 +281,7 @@ def main(): else: kernel_version, msg = detect_kernel_version(args.config) if kernel_version is None: - if not args.kernel_version: + if args.kernel_version is None: print('[!] Hint: provide the kernel version file through --kernel-version option') sys.exit(f'[!] ERROR: {msg}') if mode != 'json': -- 2.31.1