only print traceback if tb is present