Project

General

Profile

« Previous | Next » 

Revision 79c9d198

Added by koszko over 1 year ago

properly raise error when REUSE is needed but not installed

View differences:

src/hydrilla/builder/build.py
115 115
    try:
116 116
        from reuse._main import main as reuse_main
117 117
    except ModuleNotFoundError:
118
        ReuseError(_('couldnt_import_reuse_is_it_installed'))
118
        raise ReuseError(_('couldnt_import_reuse_is_it_installed'))
119 119

  
120 120
    mocked_output = FileBuffer()
121 121
    if reuse_main(args=['--root', str(root), 'lint'], out=mocked_output) != 0:

Also available in: Unified diff