Skip to content
Permalink
Browse files
docs: fix docstring for session.py (#387)
  • Loading branch information
dandhlee committed Jun 25, 2021
1 parent 32a5576 commit 3132587453f7bd0be72ebc393626b5c8b1bab982
Showing with 2 additions and 2 deletions.
  1. +2 −2 google/cloud/spanner_v1/session.py
@@ -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")
@@ -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")

0 comments on commit 3132587

Please sign in to comment.