mirror of
https://github.com/m-labs/artiq.git
synced 2025-02-17 21:11:56 +08:00
Inject parameters into coredevice exception message when mapping.
This commit is contained in:
parent
ee1ef551bc
commit
b669e83554
@ -512,7 +512,7 @@ class CommGeneric:
|
|||||||
assert exception.id != 0
|
assert exception.id != 0
|
||||||
python_exn_type = object_map.retrieve(exception.id)
|
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
|
python_exn.artiq_exception = exception
|
||||||
raise python_exn
|
raise python_exn
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user