fix references to traceback.format_exc() which don't do anything