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 125c436 commit 923d372Copy full SHA for 923d372
google/generativeai/notebook/gspread_client.py
@@ -29,14 +29,10 @@
29
_gspread_import_error: Exception | None = None
30
try:
31
# pylint: disable-next=g-import-not-at-top
32
- from gspread import gspread
33
-except (ImportError, ModuleNotFoundError):
34
- try:
35
- # pylint: disable-next=g-import-not-at-top
36
- import gspread
37
- except ImportError as e:
38
- _gspread_import_error = e
39
- gspread = None
+ import gspread
+except ImportError as e:
+ _gspread_import_error = e
+ gspread = None
40
41
# Base class of exceptions that gspread.open(), open_by_url() and open_by_key()
42
# may throw.
0 commit comments