From 40b33071724f9d478c203dd9efa86c0668c3b283 Mon Sep 17 00:00:00 2001 From: Peter Lamut Date: Thu, 12 Sep 2019 11:12:24 +0200 Subject: [PATCH] Link to correct TimeoutError in futures docs --- pubsub/google/cloud/pubsub_v1/futures.py | 4 ++-- pubsub/google/cloud/pubsub_v1/publisher/futures.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pubsub/google/cloud/pubsub_v1/futures.py b/pubsub/google/cloud/pubsub_v1/futures.py index 21d5d810199f..0d7ba7f9bf52 100644 --- a/pubsub/google/cloud/pubsub_v1/futures.py +++ b/pubsub/google/cloud/pubsub_v1/futures.py @@ -94,7 +94,7 @@ def result(self, timeout=None): times out and raises TimeoutError. Raises: - ~.pubsub_v1.TimeoutError: If the request times out. + concurrent.futures.TimeoutError: If the request times out. Exception: For undefined exceptions in the underlying call execution. """ @@ -114,7 +114,7 @@ def exception(self, timeout=None): times out and raises TimeoutError. Raises: - TimeoutError: If the request times out. + concurrent.futures.TimeoutError: If the request times out. Returns: Exception: The exception raised by the call, if any. diff --git a/pubsub/google/cloud/pubsub_v1/publisher/futures.py b/pubsub/google/cloud/pubsub_v1/publisher/futures.py index ed200041177b..fa8a79998617 100644 --- a/pubsub/google/cloud/pubsub_v1/publisher/futures.py +++ b/pubsub/google/cloud/pubsub_v1/publisher/futures.py @@ -39,7 +39,7 @@ def result(self, timeout=None): str: The message ID. Raises: - ~.pubsub_v1.TimeoutError: If the request times out. + concurrent.futures.TimeoutError: If the request times out. Exception: For undefined exceptions in the underlying call execution. """