chore: update warning message with exception details (#30605)

This commit is contained in:
Waheed Ahmad
2022-06-16 13:26:57 +05:00
committed by GitHub
parent ec36d3a949
commit a4f5f03a14

View File

@@ -115,5 +115,5 @@ def _listen_for_user_email_changed(sender, user, **kwargs):
braze_client = get_braze_client()
if braze_client:
braze_client.track_user(attributes=attributes)
except Exception: # pylint: disable=broad-except
logger.warning(f'Unable to sync new email [{email}] with Braze for user [{user_id}]')
except Exception as exc: # pylint: disable=broad-except
logger.warning(f'Unable to sync new email [{email}] with Braze for user [{user_id}]: {str(exc)}')