Skip to content

Commit 8a106d3

Browse files
committed
#267 Do not raise exceptions in CLI calls
* this was temporarily activated as a debug helper Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent f60a5a9 commit 8a106d3

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/scancode/cli.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,6 @@ def scan_infos(input_file):
362362
try:
363363
infos = get_file_infos(input_file, as_list=False)
364364
except Exception, e:
365-
raise
366365
# never fail but instead add an error message.
367366
# FIXME: this should not be stored at the individual scan level
368367
return dict(errors=e.message)
@@ -385,7 +384,6 @@ def scan_one(input_file, scans):
385384
scan_details = list(scan_details)
386385
scan_result[scan_name] = scan_details
387386
except Exception, e:
388-
raise
389387
# never fail but instead add an error message.
390388
# FIXME: this should not be stored at the individual scan level
391389
scan_result[scan_name] = {'errors': e.message}

0 commit comments

Comments
 (0)