Skip to content

Commit

Permalink
🎨 Replace AskarError with ProfileError
Browse files Browse the repository at this point in the history
Signed-off-by: ff137 <[email protected]>
  • Loading branch information
ff137 committed Dec 5, 2024
1 parent 3a5927d commit f86406f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions acapy_agent/core/conductor.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import logging
from typing import Optional

from aries_askar import AskarError
from packaging import version as package_version
from qrcode import QRCode

Expand Down Expand Up @@ -78,7 +77,7 @@
from ..wallet.anoncreds_upgrade import upgrade_wallet_to_anoncreds_if_requested
from ..wallet.did_info import DIDInfo
from .dispatcher import Dispatcher
from .error import StartupError
from .error import ProfileError, StartupError
from .oob_processor import OobMessageProcessor
from .util import SHUTDOWN_EVENT_TOPIC, STARTUP_EVENT_TOPIC

Expand Down Expand Up @@ -724,7 +723,7 @@ def dispatch_complete(self, message: InboundMessage, completed: CompletedTask):
)
if self.admin_server:
self.admin_server.notify_fatal_error()
elif isinstance(exc, (AskarError, StorageNotFoundError)):
elif isinstance(exc, (ProfileError, StorageNotFoundError)):
LOGGER.warning(
"Storage error occurred in message handler: %s: %s",
exc_class.__name__,
Expand Down

0 comments on commit f86406f

Please sign in to comment.