diff --git a/aries_cloudagent/protocols/issue_credential/v1_0/manager.py b/aries_cloudagent/protocols/issue_credential/v1_0/manager.py index 0ae08a8614..0802dc4e99 100644 --- a/aries_cloudagent/protocols/issue_credential/v1_0/manager.py +++ b/aries_cloudagent/protocols/issue_credential/v1_0/manager.py @@ -849,7 +849,7 @@ async def send_credential_ack( if cred_ex_record.auto_remove: await cred_ex_record.delete_record(session) # all done: delete - except StorageError as err: + except StorageError: LOGGER.exception( "Error updating credential exchange" ) # holder still owes an ack: carry on diff --git a/aries_cloudagent/protocols/issue_credential/v1_0/models/credential_exchange.py b/aries_cloudagent/protocols/issue_credential/v1_0/models/credential_exchange.py index 2fcbc2248d..1a32ba2abc 100644 --- a/aries_cloudagent/protocols/issue_credential/v1_0/models/credential_exchange.py +++ b/aries_cloudagent/protocols/issue_credential/v1_0/models/credential_exchange.py @@ -218,7 +218,7 @@ async def save_error_state( log_params=log_params, log_override=log_override, ) - except StorageError as err: + except StorageError: LOGGER.exception("Error saving credential exchange error state") @property diff --git a/aries_cloudagent/protocols/issue_credential/v2_0/manager.py b/aries_cloudagent/protocols/issue_credential/v2_0/manager.py index b21d200856..5dd4a7e347 100644 --- a/aries_cloudagent/protocols/issue_credential/v2_0/manager.py +++ b/aries_cloudagent/protocols/issue_credential/v2_0/manager.py @@ -649,7 +649,7 @@ async def send_cred_ack( if cred_ex_record.auto_remove: await self.delete_cred_ex_record(cred_ex_record.cred_ex_id) - except StorageError as err: + except StorageError: LOGGER.exception( "Error sending credential ack" ) # holder still owes an ack: carry on