We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10888be commit 1d778e6Copy full SHA for 1d778e6
ads/aqua/__init__.py
@@ -22,12 +22,15 @@
22
if not ODSC_MODEL_COMPARTMENT_OCID:
23
try:
24
ODSC_MODEL_COMPARTMENT_OCID = fetch_service_compartment()
25
- except Exception as e:
+ except:
26
+ pass
27
+
28
+if not ODSC_MODEL_COMPARTMENT_OCID:
29
+ logger.error(
30
+ f"ODSC_MODEL_COMPARTMENT_OCID environment variable is not set for Aqua."
31
+ )
32
+ if NB_SESSION_OCID:
33
logger.error(
- f"ODSC_MODEL_COMPARTMENT_OCID environment variable is not set for Aqua, due to {e}."
34
+ f"Aqua is not available for this notebook session {NB_SESSION_OCID}."
35
)
- if NB_SESSION_OCID:
- logger.error(
- f"Aqua is not available for this notebook session {NB_SESSION_OCID}."
- )
- exit()
36
+ exit()
0 commit comments