mirror of https://github.com/m-labs/artiq.git
hardware_testbench: clean up artiq_core_exeption printing
This commit is contained in:
parent
b50e3fabb0
commit
9a661bd273
|
@ -125,5 +125,7 @@ class ExperimentCase(unittest.TestCase):
|
||||||
# Reduce amount of text on terminal.
|
# Reduce amount of text on terminal.
|
||||||
raise error from None
|
raise error from None
|
||||||
except Exception as exn:
|
except Exception as exn:
|
||||||
exn.args = exn.args[0] + "\n" + str(exn.artiq_core_exception),
|
if hasattr(exn, "artiq_core_exception"):
|
||||||
|
exn.args = "{}\n{}".format(exn.args[0],
|
||||||
|
exn.artiq_core_exception),
|
||||||
raise exn
|
raise exn
|
||||||
|
|
Loading…
Reference in New Issue