Skip to content

Commit

Permalink
docs: fix docstring for session.py (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
dandhlee authored Jun 25, 2021
1 parent 32a5576 commit 3132587
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google/cloud/spanner_v1/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def create(self):
See
https://cloud.google.com/spanner/reference/rpc/google.spanner.v1#google.spanner.v1.Spanner.CreateSession
:raises: :exc:`ValueError` if :attr:`session_id` is already set.
:raises ValueError: if :attr:`session_id` is already set.
"""
if self._session_id is not None:
raise ValueError("Session ID already set by back-end")
Expand Down Expand Up @@ -171,7 +171,7 @@ def delete(self):
def ping(self):
"""Ping the session to keep it alive by executing "SELECT 1".
:raises: ValueError: if :attr:`session_id` is not already set.
:raises ValueError: if :attr:`session_id` is not already set.
"""
if self._session_id is None:
raise ValueError("Session ID not set by back-end")
Expand Down

0 comments on commit 3132587

Please sign in to comment.