1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

buildtools: Correctly raise exception

This avoids errors like the following:
‘RuntimeError: No active exception to reraise’

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-10-13 12:38:35 +13:00 committed by Andrew Bartlett
parent ec23abfe1f
commit 35c7061f97

View File

@ -469,8 +469,7 @@ def RECURSE(ctx, directory):
return ctx.recurse(relpath)
if 'waflib.extras.compat15' in sys.modules:
return ctx.recurse(relpath)
Logs.error('Unknown RECURSE context class: {}'.format(ctxclass))
raise
raise Errors.WafError('Unknown RECURSE context class: {}'.format(ctxclass))
Options.OptionsContext.RECURSE = RECURSE
Build.BuildContext.RECURSE = RECURSE