mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-09-24 07:25:03 -05:00
revert lgtm attempt
This commit is contained in:
@@ -52,7 +52,7 @@ class AbstractRpcApiHandler(ABC):
|
||||
)
|
||||
try:
|
||||
await self.websocket.send_str(payload)
|
||||
except (BaseException.Exception) as e:
|
||||
except (BaseException) as e:
|
||||
try:
|
||||
self.log.warning(f"Sending data failed. Exception {type(e)}.")
|
||||
except BrokenPipeError:
|
||||
@@ -158,7 +158,7 @@ class AbstractRpcApiHandler(ABC):
|
||||
if response is not None:
|
||||
await websocket.send_str(format_response(message, response))
|
||||
|
||||
except BaseException.Exception as e:
|
||||
except BaseException as e:
|
||||
tb = traceback.format_exc()
|
||||
self.log.error(f"Error while handling message: {tb}")
|
||||
error = {"success": False, "error": f"{e}"}
|
||||
@@ -210,7 +210,7 @@ class AbstractRpcApiHandler(ABC):
|
||||
await self.connection(ws)
|
||||
self.websocket = None
|
||||
await session.close()
|
||||
except BaseException.Exception as e:
|
||||
except BaseException as e:
|
||||
self.log.warning(f"Exception: {e}")
|
||||
if session is not None:
|
||||
await session.close()
|
||||
|
||||
@@ -258,7 +258,7 @@ class Keychain:
|
||||
keyring.delete_password(
|
||||
self._get_service(), self._get_private_key_seed_user(index)
|
||||
)
|
||||
except BaseException.Exception:
|
||||
except BaseException:
|
||||
delete_exception = True
|
||||
|
||||
# Stop when there are no more keys to delete
|
||||
@@ -277,7 +277,7 @@ class Keychain:
|
||||
keyring.delete_password(
|
||||
self._get_service(), self._get_private_key_user(index)
|
||||
)
|
||||
except BaseException.Exception:
|
||||
except BaseException:
|
||||
delete_exception = True
|
||||
|
||||
# Stop when there are no more keys to delete
|
||||
|
||||
Reference in New Issue
Block a user