Fix linting errors

This commit is contained in:
Neil Martinsen-Burrell 2023-04-04 10:29:29 -05:00
parent ac73a54a9d
commit ce9c8abd60
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184

View file

@ -93,8 +93,12 @@ class DomainAddUserView(DomainPermission, FormMixin, DetailView):
)
except EmailSendingError:
messages.warning(self.request, "Could not send email invitation.")
logger.warn("Could not sent email invitation to %s for domain %s",
email_address, self.object, exc_info=True)
logger.warn(
"Could not sent email invitation to %s for domain %s",
email_address,
self.object,
exc_info=True,
)
else:
messages.success(
self.request, f"Invited {email_address} to this domain."