diff --git a/acapy_agent/connections/base_manager.py b/acapy_agent/connections/base_manager.py index f5ea4451b5..012b17669b 100644 --- a/acapy_agent/connections/base_manager.py +++ b/acapy_agent/connections/base_manager.py @@ -7,6 +7,7 @@ import logging from typing import Dict, List, Optional, Sequence, Text, Tuple, Union +import pydantic import pydid from base58 import b58decode from did_peer_2 import KeySpec, generate @@ -444,7 +445,7 @@ async def resolve_didcomm_services( try: doc_dict: dict = await resolver.resolve(self._profile, did, service_accept) doc: ResolvedDocument = pydid.deserialize_document(doc_dict, strict=True) - except ResolverError as error: + except (ResolverError, pydantic.ValidationError) as error: raise BaseConnectionManagerError("Failed to resolve DID services") from error if not doc.service: