Skip to content

Commit 825145e

Browse files
author
µ
committed
additional fixes
1 parent 25a7a47 commit 825145e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bittensor/axon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ class FastAPIThreadedServer(uvicorn.Server):
110110
"""
111111
Provide a channel to signal exceptions from the thread to our caller.
112112
"""
113-
_exception: Exception = None
113+
_exception: Optional[Exception] = None
114114
_lock: threading.Lock = threading.Lock()
115-
_thread: threading.Thread = None
115+
_thread: Optional[threading.Thread] = None
116116
_started: bool = False
117117

118118
def set_exception(self, exception: Exception) -> None:

0 commit comments

Comments
 (0)