Skip to content

Commit f9bf958

Browse files
corrected fetching of username in log statement
1 parent f23762a commit f9bf958

File tree

1 file changed

+2
-2
lines changed
  • openedx/features/wikimedia_features/wikimedia_general/management/commands

1 file changed

+2
-2
lines changed

openedx/features/wikimedia_features/wikimedia_general/management/commands/award_badges.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ def award_badges_for_course(self, course_id):
4949
course_badge_check(user, course_key)
5050
LOGGER.info("Awarded badge to user %s for the course %s", user.username, course_id)
5151
except User.DoesNotExist:
52-
LOGGER.error("User with id %s does not exist", user_id)
52+
LOGGER.error("User with id %s does not exist", user.username)
5353
except Exception as e:
54-
LOGGER.error("An error occurred while processing user %s: %s", user_id, str(e), exc_info=True)
54+
LOGGER.error("An error occurred while processing user %s: %s", user.username, str(e), exc_info=True)

0 commit comments

Comments
 (0)