compiler: add UnwrapNoneError exception

This commit is contained in:
abdul124 2024-08-23 16:57:21 +08:00 committed by Sébastien Bourdeauducq
parent 7a2b11cc54
commit 352cf907ee
2 changed files with 6 additions and 0 deletions

View File

@ -114,6 +114,7 @@ class EmbeddingMap:
"0:ValueError",
"0:ZeroDivisionError",
"0:LinAlgError",
"UnwrapNoneError",
])
def preallocate_runtime_exception_names(self, names):

View File

@ -182,3 +182,8 @@ class I2CError(Exception):
class SPIError(Exception):
"""Raised when a SPI transaction fails."""
artiq_builtin = True
class UnwrapNoneError(Exception):
"""Raised when unwrapping a none Option."""
artiq_builtin = True