mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-04 09:27:11 +08:00
master/worker: use only first line in short_exc_info
This commit is contained in:
parent
5d5a4433a7
commit
7bdec1b93b
@ -255,7 +255,7 @@ def main():
|
|||||||
short_exc_info = type(exc).__name__
|
short_exc_info = type(exc).__name__
|
||||||
exc_str = str(exc)
|
exc_str = str(exc)
|
||||||
if exc_str:
|
if exc_str:
|
||||||
short_exc_info += ": " + exc_str
|
short_exc_info += ": " + exc_str.splitlines()[0]
|
||||||
lines = ["Terminating with exception ("+short_exc_info+")\n"]
|
lines = ["Terminating with exception ("+short_exc_info+")\n"]
|
||||||
if hasattr(exc, "artiq_core_exception"):
|
if hasattr(exc, "artiq_core_exception"):
|
||||||
lines.append(str(exc.artiq_core_exception))
|
lines.append(str(exc.artiq_core_exception))
|
||||||
|
Loading…
Reference in New Issue
Block a user