Update src/registrar/views/portfolios.py

Co-authored-by: zandercymatics <141044360+zandercymatics@users.noreply.github.com>
This commit is contained in:
CuriousX 2024-12-04 01:20:11 -07:00 committed by GitHub
parent 52937710df
commit 2c2f1ab830
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -561,8 +561,8 @@ class NewMemberView(PortfolioMembersPermissionView, FormMixin):
# it has been sent but not accepted
messages.warning(self.request, f"{email} has already been invited to this portfolio")
return
except Exception:
logger.error("An error occured")
except Exception as err:
logger.error(f"_send_portfolio_invitation_email() => An error occured: {err}")
try:
logger.debug("requestor email: " + requestor_email)