diff --git a/google/cloud/sql/connector/connector.py b/google/cloud/sql/connector/connector.py index 80ee6a9c..d9e62013 100755 --- a/google/cloud/sql/connector/connector.py +++ b/google/cloud/sql/connector/connector.py @@ -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 @@ -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()) diff --git a/google/cloud/sql/connector/exceptions.py b/google/cloud/sql/connector/exceptions.py index 629c5d2b..7bff2300 100644 --- a/google/cloud/sql/connector/exceptions.py +++ b/google/cloud/sql/connector/exceptions.py @@ -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.