revert lgtm attempt

This commit is contained in:
Gene Hoffman
2020-06-01 08:56:59 -07:00
committed by wjblanke
parent 77721cd653
commit 2fab9d5d18
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -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()
+2 -2
View File
@@ -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