support "raise Exception" short form #194

Closed
opened 2022-02-13 13:31:04 +08:00 by sb10q · 0 comments
Owner

This is valid Python:

@kernel
    def run(self):
        raise RTIOUnderflow

Currently fails with:

RuntimeError: nac3 compilation failure: Expected a subtype of Exception, but got fn[[msg=str, param0=int64, param1=int64, param2=int64], artiq.coredevice.exceptions.RTIOUnderflow] (at rpc.py: line 15 column 15)
This is valid Python: ``` @kernel def run(self): raise RTIOUnderflow ``` Currently fails with: ``` RuntimeError: nac3 compilation failure: Expected a subtype of Exception, but got fn[[msg=str, param0=int64, param1=int64, param2=int64], artiq.coredevice.exceptions.RTIOUnderflow] (at rpc.py: line 15 column 15) ```
sb10q added the
low-priority
label 2022-02-13 13:31:04 +08:00
sb10q closed this issue 2024-07-12 19:01:38 +08:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nac3#194
No description provided.