File size: 474 Bytes
ec0e527
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

try:
    from google.api_core import exceptions
    print("google.api_core.exceptions found")
    print(f"ResourceExhausted: {exceptions.ResourceExhausted}")
    print(f"Unauthenticated: {exceptions.Unauthenticated}")
    print(f"PermissionDenied: {exceptions.PermissionDenied}")
except ImportError:
    print("google.api_core.exceptions NOT found")

try:
    from google import genai
    print("google.genai found")
except ImportError:
    print("google.genai NOT found")