From f74236f8043c89741dbcbc736f39985035b8a444 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Fri, 15 May 2020 15:29:46 -0400 Subject: [PATCH] cli: print traceback for unknown exceptions Signed-off-by: Philippe Proulx --- barectf/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/barectf/cli.py b/barectf/cli.py index 8b12f15..8add0c8 100644 --- a/barectf/cli.py +++ b/barectf/cli.py @@ -118,6 +118,9 @@ def run(): except barectf.config.ConfigError as e: _pconfig_error(e) except Exception as e: + import traceback + + traceback.print_exc() _perror('unknown exception: {}'.format(e)) # replace prefix if needed -- 2.34.1