Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Raise an exception if the target can't be scanned
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-cerny committed Aug 2, 2017
1 parent aeb6325 commit e33c7bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/oscapd-evaluate
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def cli_scan(args, config):
"in profiles applicable to target '%s': %s"
% (args.profile, target, e.message)
)
raise RuntimeError
try:
standard_scan_results, stdout, stderr, exit_code = \
es.evaluate(config)
Expand Down

0 comments on commit e33c7bb

Please sign in to comment.