Skip to content

Commit

Permalink
Fix config argument check
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Efremov <[email protected]>
  • Loading branch information
evdenis committed Mar 12, 2021
1 parent 441d8a1 commit d282517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cvehound/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit d282517

Please sign in to comment.