Skip to content

Commit 91cb5c6

Browse files
google-genai-botcopybara-github
authored andcommitted
fix: Catch OSError when importing AnthropicLlm
PiperOrigin-RevId: 912711824
1 parent e7316dc commit 91cb5c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/google/adk/flows/llm_flows/contents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async def run_async(
5757
# ids must survive replay.
5858
try:
5959
from ...models.anthropic_llm import AnthropicLlm
60-
except ImportError:
60+
except (ImportError, OSError):
6161
AnthropicLlm = None
6262
if AnthropicLlm is not None and isinstance(
6363
canonical_model, AnthropicLlm

0 commit comments

Comments
 (0)