aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla/builder
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-04-22 12:52:54 +0200
committerWojtek Kosior <koszko@koszko.org>2022-04-22 14:52:44 +0200
commit79c9d19874b9be4a3c9e7505057a31a857e78437 (patch)
treeadcbc9402ce021220930d9f28ef81091576554b4 /src/hydrilla/builder
parentde6c5a5451e4871d3c793a250627b6c166fce835 (diff)
downloadhydrilla-builder-79c9d19874b9be4a3c9e7505057a31a857e78437.tar.gz
hydrilla-builder-79c9d19874b9be4a3c9e7505057a31a857e78437.zip
properly raise error when REUSE is needed but not installed
Diffstat (limited to 'src/hydrilla/builder')
-rw-r--r--src/hydrilla/builder/build.py2
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: