Configures ruff as the one stop linter and resolves warnings it raised

This commit is contained in:
Trenton H
2023-03-28 09:39:30 -07:00
parent 5869467db3
commit ce41ac9158
110 changed files with 507 additions and 491 deletions

View File

@@ -65,9 +65,8 @@ class MailAccountTestView(GenericAPIView):
try:
mailbox_login(M, account)
return Response({"success": True})
except MailError as e:
except MailError:
logger.error(
f"Mail account {account} test failed: {e}",
exc_info=False,
f"Mail account {account} test failed",
)
return HttpResponseBadRequest("Unable to connect to server")