From 825145e83d0200303a6a1b83628eb9ba64f028f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=B5?= Date: Wed, 14 Aug 2024 18:43:39 +0000 Subject: [PATCH] additional fixes --- bittensor/axon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bittensor/axon.py b/bittensor/axon.py index 99f72eca44..0a62d6c84b 100644 --- a/bittensor/axon.py +++ b/bittensor/axon.py @@ -110,9 +110,9 @@ class FastAPIThreadedServer(uvicorn.Server): """ Provide a channel to signal exceptions from the thread to our caller. """ - _exception: Exception = None + _exception: Optional[Exception] = None _lock: threading.Lock = threading.Lock() - _thread: threading.Thread = None + _thread: Optional[threading.Thread] = None _started: bool = False def set_exception(self, exception: Exception) -> None: