Skip to content

Commit

Permalink
fix: credential_file logic when not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
DataBoyTX committed Jan 24, 2025
1 parent 3d4c986 commit 52e9b4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion graphistry/plugins/spannergraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ def __connect(self) -> Any:
from google.cloud.spanner_dbapi.connection import connect

try:
if self.credentials_file:
if hasattr(self, 'credentials_file') and self.credentials_file is not None:

connection = connect(self.instance_id, self.database_id, credentials=self.credentials_file)
else:
connection = connect(self.instance_id, self.database_id)
Expand Down

0 comments on commit 52e9b4b

Please sign in to comment.