File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11## ?.?.? - Unreleased
22
33* Removed Origo as an organization choice for public services.
4+ * Improved request timeout handling.
45
56## 6.0.0 - 2026-01-30
67
Original file line number Diff line number Diff line change 44
55from keycloak .exceptions import KeycloakGetError , KeycloakPostError
66from okdata .sdk .exceptions import ApiAuthenticateError
7- from requests .exceptions import RequestException
7+ from requests .exceptions import ConnectTimeout , RequestException
88
99from okdata .cli import MAINTAINER
1010from okdata .cli .command import BaseCommand
@@ -37,6 +37,11 @@ def main():
3737 # Flush output here to force SIGPIPE to be triggered while inside
3838 # this try block.
3939 sys .stdout .flush ()
40+ except ConnectTimeout as e :
41+ instance .print (
42+ f"Connection to '{ e .request .url } ' timed out. Please try again, "
43+ f"or contact { MAINTAINER } if the problem persists." ,
44+ )
4045 except RequestException as e :
4146 if hasattr (e .response , "json" ):
4247 instance .print_error_response (e .response .json ())
You can’t perform that action at this time.
0 commit comments