Skip to content

Commit a45aa67

Browse files
committed
Improved compability check error handling.
1 parent bff71a5 commit a45aa67

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ads/aqua/common/utils.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import asyncio
77
import base64
8+
import concurrent.futures
89
import json
910
import logging
1011
import os
@@ -615,6 +616,12 @@ def fetch_service_compartment() -> Union[str, None]:
615616
file_path=config_file_name,
616617
config_file_name=CONTAINER_INDEX,
617618
)
619+
except concurrent.futures.TimeoutError:
620+
logger.debug(
621+
"If you are using custom networking in your notebook session, "
622+
"please check if the subnet has service gateway configured."
623+
)
624+
return
618625
except Exception as e:
619626
logger.debug(
620627
f"Config file {config_file_name}/{CONTAINER_INDEX} to fetch service compartment OCID "

0 commit comments

Comments
 (0)