We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0697b74 commit 0e5a428Copy full SHA for 0e5a428
1 file changed
brainframe/api/stub.py
@@ -3,7 +3,7 @@
3
4
from requests.exceptions import ConnectionError, ReadTimeout
5
6
-from .bf_errors import UnauthorizedError, UnknownError
+from .bf_errors import UnauthorizedError, UnknownError, ServerNotReadyError
7
from . import stubs
8
from .stubs.base_stub import DEFAULT_TIMEOUT
9
@@ -59,8 +59,8 @@ def wait_for_server_initialization(self, timeout: float = None):
59
try:
60
# Test connection to server
61
self.version()
62
- except (ConnectionError, ConnectionRefusedError,
63
- UnauthorizedError, ReadTimeout):
+ except (ConnectionError, ConnectionRefusedError, ReadTimeout,
+ UnauthorizedError, ServerNotReadyError):
64
# Server not started yet or there is a communication
65
# error
66
pass
0 commit comments