Skip to content

Commit ff83d01

Browse files
committed
more debug
1 parent 16d41e6 commit ff83d01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pymongo/asynchronous/srv_resolver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ async def _resolve_uri(self, encapsulate_errors: bool) -> resolver.Answer:
122122
# Raise the original error.
123123
raise
124124
# Else, raise all errors as ConfigurationError.
125-
raise ValueError(f"{self.__srv=} {self.__fqdn=}") from None
125+
raise ValueError(f"{self.__srv=} {self.__fqdn=} {exc=}") from None
126126
raise ConfigurationError(str(exc)) from None
127127
return results
128128

pymongo/synchronous/srv_resolver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def _resolve_uri(self, encapsulate_errors: bool) -> resolver.Answer:
122122
# Raise the original error.
123123
raise
124124
# Else, raise all errors as ConfigurationError.
125-
raise ValueError(f"{self.__srv=} {self.__fqdn=}") from None
125+
raise ValueError(f"{self.__srv=} {self.__fqdn=} {exc=}") from None
126126
raise ConfigurationError(str(exc)) from None
127127
return results
128128

0 commit comments

Comments
 (0)