Skip to content

Commit dcf2fda

Browse files
authored
Just log info when user has no social auth (#5411)
1 parent 6233fdc commit dcf2fda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dashboard/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,8 +730,8 @@ def refresh_user_data(user_id, provider):
730730
# get the credentials for the current user for edX
731731
try:
732732
user_social = get_social_auth(user, provider)
733-
except:
734-
log.exception('user "%s" does not have edX credentials', user.username)
733+
except ObjectDoesNotExist:
734+
log.info('No social auth for %s for user %s', provider, user.username)
735735
return
736736

737737
try:

0 commit comments

Comments
 (0)