diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-04-22 12:52:54 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-04-22 14:52:44 +0200 |
commit | 79c9d19874b9be4a3c9e7505057a31a857e78437 (patch) | |
tree | adcbc9402ce021220930d9f28ef81091576554b4 | |
parent | de6c5a5451e4871d3c793a250627b6c166fce835 (diff) | |
download | hydrilla-builder-79c9d19874b9be4a3c9e7505057a31a857e78437.tar.gz hydrilla-builder-79c9d19874b9be4a3c9e7505057a31a857e78437.zip |
properly raise error when REUSE is needed but not installed
-rw-r--r-- | src/hydrilla/builder/build.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |