Skip to content

Commit

Permalink
chore: remove unneeded exception
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwotherspoon committed Jun 25, 2024
1 parent a23b82b commit 4b315c4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions google/cloud/sql/connector/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
from google.cloud.sql.connector.enums import IPTypes
from google.cloud.sql.connector.enums import RefreshStrategy
from google.cloud.sql.connector.exceptions import ConnectorLoopError
from google.cloud.sql.connector.exceptions import DnsNameResolutionError
from google.cloud.sql.connector.instance import RefreshAheadCache
from google.cloud.sql.connector.lazy import LazyRefreshCache
import google.cloud.sql.connector.pg8000 as pg8000
Expand Down Expand Up @@ -263,8 +262,6 @@ async def connect_async(
and then subsequent attempt with IAM database authentication.
KeyError: Unsupported database driver Must be one of pymysql, asyncpg,
pg8000, and pytds.
DnsNameResolutionError: Could not resolve PSC IP address from DNS
host name.
"""
if self._keys is None:
self._keys = asyncio.create_task(generate_keys())
Expand Down
7 changes: 0 additions & 7 deletions google/cloud/sql/connector/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,6 @@ class AutoIAMAuthNotSupported(Exception):
pass


class DnsNameResolutionError(Exception):
"""
Exception to be raised when the DnsName of a PSC connection to a
Cloud SQL instance can not be resolved to a proper IP address.
"""


class RefreshNotValidError(Exception):
"""
Exception to be raised when the task returned from refresh is not valid.
Expand Down

0 comments on commit 4b315c4

Please sign in to comment.