Skip to content
Snippets Groups Projects
Commit b9d3a3e4 authored by Jakub Kicinski's avatar Jakub Kicinski
Browse files

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: default avatarChuck Lever III <chuck.lever@oracle.com>
Fixes: 3aacf828 ("tools: ynl: add an object hierarchy to represent parsed spec")
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent f7cf6447
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,6 @@
import collections
import importlib
import os
import traceback
import yaml
......@@ -234,8 +233,7 @@ class SpecFamily(SpecElement):
resolved.append(elem)
if len(resolved) == 0:
traceback.print_exception(last_exception)
raise Exception("Could not resolve any spec element, infinite loop?")
raise last_exception
def new_attr_set(self, elem):
return SpecAttrSet(self, elem)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment