提交 7f355461 编写于 作者: I Ivo De Decker

Show exceptions in {source,binary}_scan_helper

上级 a13b98d0
......@@ -380,8 +380,11 @@ def binary_scan_helper(binary_id):
'''
This function runs in a subprocess.
'''
scanner = BinaryContentsScanner(binary_id)
scanner.scan()
try:
scanner = BinaryContentsScanner(binary_id)
scanner.scan()
except Exception as e:
print("binary_scan_helper raised an exception: %s" % (e))
class UnpackedSource(object):
......@@ -503,4 +506,4 @@ def source_scan_helper(source_id):
scanner = SourceContentsScanner(source_id)
scanner.scan()
except Exception as e:
print(e)
print("source_scan_helper raised an exception: %s" % (e))
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册