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:
parent
ec23abfe1f
commit
35c7061f97
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user