tweak: Add fallback user name

This commit is contained in:
2025-10-30 23:42:56 +10:00
parent 89f9ce3ffa
commit 11c77bcc89

View File

@@ -106,8 +106,8 @@ async def prepare_subathon(
if contrib.profileid: if contrib.profileid:
profile = await profiler.get_profile(contrib.profileid) profile = await profiler.get_profile(contrib.profileid)
assert profile is not None assert profile is not None
name = profile.nickname name = profile.nickname or "Unknown"
user_id = None user_id = str(profile.profileid)
else: else:
name = "Anonymous" name = "Anonymous"
user_id = None user_id = None