Skip to content

Commit

Permalink
log has to be changed to account for new members without any expiry d…
Browse files Browse the repository at this point in the history
…ate yet
  • Loading branch information
modernNeo committed Mar 2, 2025
1 parent 39688cc commit 51ca23e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions wall_e/extensions/leveling.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,12 +820,15 @@ async def _update_member_profile_data(self, logger, member, updated_user_id, ind
user_updated = False
user_processed = False
try:
expiry_date = (
self.user_points[member.id].discord_avatar_link_expiry_date.pst
if self.user_points[member.id].discord_avatar_link_expiry_date else None
)
logger.debug(
f"[Leveling _update_member_profile_data()] "
f"attempt {self.user_points[member.id].leveling_update_attempt} to update the member profile "
f"data in the database for member {member} with id [{member.id}], "
f"updated_user_log_id = {updated_user_log_id}, expiry_date of "
f"[{self.user_points[member.id].discord_avatar_link_expiry_date.pst}] and a CDN link of "
f"updated_user_log_id = {updated_user_log_id}, expiry_date of [{expiry_date}] and a CDN link of "
f"<{self.user_points[member.id].leveling_message_avatar_url}> "
f"{index + 1}/{total_number_of_updates_needed}"
)
Expand Down

0 comments on commit 51ca23e

Please sign in to comment.