From 49eeb0372d2265e662d7605ac1d8f20dfe62adb6 Mon Sep 17 00:00:00 2001 From: Anna Date: Mon, 9 Dec 2024 14:14:33 -0500 Subject: [PATCH] Just log info when user has no social auth --- dashboard/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/api.py b/dashboard/api.py index c20ea4f713..5f459ad83b 100644 --- a/dashboard/api.py +++ b/dashboard/api.py @@ -730,8 +730,8 @@ def refresh_user_data(user_id, provider): # get the credentials for the current user for edX try: user_social = get_social_auth(user, provider) - except: - log.exception('user "%s" does not have edX credentials', user.username) + except ObjectDoesNotExist: + log.info('No social auth for %s for user %s', provider, user.username) return try: