Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit 2055e25

Browse files
committed
updates Error name
1 parent b54d8c2 commit 2055e25

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

google_auth_oauthlib/flow.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def run_local_server(
410410
in the user's browser.
411411
redirect_uri_trailing_slash (bool): whether or not to add trailing
412412
slash when constructing the redirect_uri. Default value is True.
413-
timeout_seconds (int): It will raise a WSGITimeout exception after the
413+
timeout_seconds (int): It will raise a WSGITimeoutError exception after the
414414
timeout timing if there are no credentials response. The value is in
415415
seconds.
416416
When set to None there is no timeout.
@@ -428,7 +428,7 @@ def run_local_server(
428428
for the user.
429429
430430
Raises:
431-
WSGITimeout: If there is a timeout when waiting for the response from the
431+
WSGITimeoutError: If there is a timeout when waiting for the response from the
432432
authorization server.
433433
"""
434434
wsgi_app = _RedirectWSGIApp(success_message)
@@ -465,7 +465,7 @@ def run_local_server(
465465
"http", "https"
466466
)
467467
except AttributeError as e:
468-
raise WSGITimeout(
468+
raise WSGITimeoutError(
469469
"Timed out waiting for response from authorization server"
470470
) from e
471471

@@ -521,5 +521,5 @@ def __call__(self, environ, start_response):
521521
return [self._success_message.encode("utf-8")]
522522

523523

524-
class WSGITimeout(AttributeError):
524+
class WSGITimeoutError(AttributeError):
525525
"""Raised when the WSGI server times out waiting for a response."""

0 commit comments

Comments
 (0)