Skip to content

Commit 5731ade

Browse files
author
Michael S. Noble
committed
make pretty_print_fc_exception EVEN PRETTIER by not dumping the stack trace every time if the JSON object cannot be decoded, but rather relying upon the --verbose CLI flag to do so (as is the case elsewhere)
1 parent ccb2d55 commit 5731ade

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

firecloud/fiss.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import os
1212
import time
1313
from inspect import getsourcelines
14-
from traceback import print_exc, print_tb as print_traceback
14+
from traceback import print_tb as print_traceback
1515
import argparse
1616
import subprocess
1717
import re
@@ -1590,7 +1590,6 @@ def __pretty_print_fc_exception(e):
15901590
if isinstance(code, str):
15911591
preface = ''
15921592
source = ''
1593-
print_exc(2)
15941593
msg = "{0}".format(e)
15951594

15961595
print("{0}{1}{2}: {3}".format(preface, code, source, msg))

0 commit comments

Comments
 (0)