From a7e1d2b1c1e237491f0da3f5cd6e2cd447df3970 Mon Sep 17 00:00:00 2001 From: abdul124 Date: Fri, 23 Aug 2024 12:12:24 +0800 Subject: [PATCH] coredevice: add UnwrapNoneError class --- artiq/coredevice/exceptions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/artiq/coredevice/exceptions.py b/artiq/coredevice/exceptions.py index bcc7ab146..1169414e7 100644 --- a/artiq/coredevice/exceptions.py +++ b/artiq/coredevice/exceptions.py @@ -181,3 +181,7 @@ 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