tools: ynl-gen: re-raise the exception instead of printing
authorJakub Kicinski <kuba@kernel.org>
Thu, 23 Feb 2023 18:31:40 +0000 (10:31 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 24 Feb 2023 19:55:47 +0000 (11:55 -0800)
commitb9d3a3e4ae0cb7c443d46ffe413e17749baab3ba
treec50277c090549037716bddfdb28ff9d066e93799
parentf7cf644796fcdb6a0e30e4a7f218be74ac8cb31d
tools: ynl-gen: re-raise the exception instead of printing

traceback.print_exception() seems tricky to call, we're missing
some argument, so re-raise instead.

Reported-by: Chuck Lever III <chuck.lever@oracle.com>
Fixes: 3aacf8281336 ("tools: ynl: add an object hierarchy to represent parsed spec")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/lib/nlspec.py