Skip to content

Commit

Permalink
[one-cmds] Suppress trackback on error from one-build (Samsung#7300)
Browse files Browse the repository at this point in the history
one-build is an end user tool.
It would be good to suppress traceback by default.

Signed-off-by: Sanggyu Lee <[email protected]>

Co-authored-by: seongwoo chae <[email protected]>
  • Loading branch information
glistening and mhs4670go authored Jul 27, 2021
1 parent aa4f446 commit f74087e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/one-cmds/one-build
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ import sys

import utils as _utils

# TODO Find better way to suppress trackback on error
# This suppression is applied only to `one-build`
sys.tracebacklimit = 0


def _get_parser():
parser = argparse.ArgumentParser(
Expand Down

0 comments on commit f74087e

Please sign in to comment.