From d282517d1c9f2f8317560382a8cf597f518fb45d Mon Sep 17 00:00:00 2001 From: Denis Efremov Date: Fri, 12 Mar 2021 19:50:18 +0300 Subject: [PATCH] Fix config argument check Signed-off-by: Denis Efremov --- cvehound/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cvehound/__main__.py b/cvehound/__main__.py index 72ddd1c..e26b1fd 100644 --- a/cvehound/__main__.py +++ b/cvehound/__main__.py @@ -66,7 +66,7 @@ def main(args=sys.argv[1:]): logging.basicConfig(level=loglevel, format='%(message)s') config_info = {} - if cmdargs.config != '-': + if cmdargs.config and cmdargs.config != '-': config_info = get_config_data(cmdargs.config) hound = CVEhound(cmdargs.kernel, cmdargs.config, config_info.get('arch', 'x86'))