From 1f1ae74a5faf10f4c276d09d698104463ee7ca58 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 3ec699b07..cf48a3281 100644 --- a/artiq/coredevice/exceptions.py +++ b/artiq/coredevice/exceptions.py @@ -174,3 +174,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