perf: Log IntegrityError details during user authentication

This commit is contained in:
wangruidong
2025-07-11 18:08:44 +08:00
committed by Bryan
parent e1f5d3c737
commit cc4be36752
4 changed files with 6 additions and 2 deletions

View File

@@ -144,6 +144,7 @@ class DingTalkQRBindCallbackView(DingTalkQRMixin, View):
user.save()
except IntegrityError as e:
msg = _('The DingTalk is already bound to another user')
logger.error(e, exc_info=True)
response = self.get_failed_response(redirect_url, msg, msg)
return response