Skip to content

Commit b6c1d6e

Browse files
committed
forgot to exit out if guild is not set yet
1 parent 9cf3ffc commit b6c1d6e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

wall_e/extensions/leveling.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,8 @@ async def process_leveling_profile_data_for_active_users(self):
669669

670670
@tasks.loop(seconds=5)
671671
async def process_outdated_profile_pics(self):
672+
if self.guild is None:
673+
return
672674
user_ids_to_update = await UserPoint.get_users_with_expired_images()
673675
self.logger.debug(
674676
f"[Leveling process_outdated_profile_pics()] {len(user_ids_to_update)} users with outdated CND links"

0 commit comments

Comments
 (0)