From b669e835540e7483e085580533ea0bedd1f50bb9 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 10 Jan 2016 18:06:28 +0000 Subject: [PATCH] Inject parameters into coredevice exception message when mapping. --- artiq/coredevice/comm_generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/coredevice/comm_generic.py b/artiq/coredevice/comm_generic.py index 637f94d32..8d8dccf87 100644 --- a/artiq/coredevice/comm_generic.py +++ b/artiq/coredevice/comm_generic.py @@ -512,7 +512,7 @@ class CommGeneric: assert exception.id != 0 python_exn_type = object_map.retrieve(exception.id) - python_exn = python_exn_type(message) + python_exn = python_exn_type(message.format(*params)) python_exn.artiq_exception = exception raise python_exn