From bf9563c1714fae9637e8423cbb15d93259474290 Mon Sep 17 00:00:00 2001 From: Andrew Whitehead Date: Wed, 2 Feb 2022 15:48:56 -0800 Subject: [PATCH] fix warnings Signed-off-by: Andrew Whitehead --- aries_cloudagent/protocols/issue_credential/v1_0/manager.py | 2 +- .../issue_credential/v1_0/models/credential_exchange.py | 2 +- aries_cloudagent/protocols/issue_credential/v2_0/manager.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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