Uncaught exception with finally does not work. #70

Closed
opened 2020-07-22 16:56:06 +08:00 by pca006132 · 0 comments
Contributor
from artiq.experiment import *

class TestFinally(EnvExperiment):
    def build(self):
        self.setattr_device("core")
        
    @kernel
    def run(self):
        try:
            raise ValueError
        finally:
            print("finally")

Expected behavior: Print "finally" before getting backtrace.

Result: "finally" is not printed.

```python from artiq.experiment import * class TestFinally(EnvExperiment): def build(self): self.setattr_device("core") @kernel def run(self): try: raise ValueError finally: print("finally") ``` Expected behavior: Print "finally" before getting backtrace. Result: "finally" is not printed.
pca006132 self-assigned this 2020-07-22 16:56:39 +08:00
pca006132 changed title from Finally does not work. to Uncaught exception with finally does not work. 2020-07-23 14:06:54 +08:00
sb10q closed this issue 2020-07-23 14:48:45 +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/artiq-zynq#70
No description provided.