tweak: Add fallback user name
This commit is contained in:
@@ -106,8 +106,8 @@ async def prepare_subathon(
|
||||
if contrib.profileid:
|
||||
profile = await profiler.get_profile(contrib.profileid)
|
||||
assert profile is not None
|
||||
name = profile.nickname
|
||||
user_id = None
|
||||
name = profile.nickname or "Unknown"
|
||||
user_id = str(profile.profileid)
|
||||
else:
|
||||
name = "Anonymous"
|
||||
user_id = None
|
||||
|
||||
Reference in New Issue
Block a user