Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Oct 24, 2024
1 parent 8cc9737 commit 386b3e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flytekit/clis/sdk_in_container/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ def pretty_print_traceback(e: Exception, verbosity: int = 1):
new_tb = remove_unwanted_traceback_frames(tb, unwanted_module_names)
console.print(Traceback.from_exception(type(e), e, new_tb))
elif verbosity == 1:
new_tb = remove_unwanted_traceback_frames(e.__traceback__, unwanted_module_names)
console.print(Traceback.from_exception(type(e), e, new_tb))
click.secho(
f"Frames from the following modules were removed from the traceback: {unwanted_module_names}."
f" For more verbose output, use the flags -vv or -vvv.",
fg="yellow",
)
new_tb = remove_unwanted_traceback_frames(e.__traceback__, unwanted_module_names)
console.print(Traceback.from_exception(type(e), e, new_tb))
elif verbosity >= 2:
console.print(Traceback.from_exception(type(e), e, e.__traceback__))
else:
Expand Down

0 comments on commit 386b3e5

Please sign in to comment.