From 79c9d19874b9be4a3c9e7505057a31a857e78437 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Fri, 22 Apr 2022 12:52:54 +0200 Subject: properly raise error when REUSE is needed but not installed --- src/hydrilla/builder/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hydrilla/builder/build.py b/src/hydrilla/builder/build.py index 5d5bbf8..8eec4a4 100644 --- a/src/hydrilla/builder/build.py +++ b/src/hydrilla/builder/build.py @@ -115,7 +115,7 @@ def generate_spdx_report(root): try: from reuse._main import main as reuse_main except ModuleNotFoundError: - ReuseError(_('couldnt_import_reuse_is_it_installed')) + raise ReuseError(_('couldnt_import_reuse_is_it_installed')) mocked_output = FileBuffer() if reuse_main(args=['--root', str(root), 'lint'], out=mocked_output) != 0: -- cgit v1.2.3