diff --git a/payphone/cogs/calls/cog.py b/payphone/cogs/calls/cog.py index 92e0df1..5c45b50 100644 --- a/payphone/cogs/calls/cog.py +++ b/payphone/cogs/calls/cog.py @@ -76,8 +76,7 @@ class Calls(base.Cog): @hangup_calls.before_loop async def before_hangup_calls(self): - """Wait until the bot is ready to start looping. - """ + """Wait until the bot is ready to start looping.""" await self.bot.wait_until_ready() await asyncio.wait(5) @@ -597,7 +596,7 @@ class Calls(base.Cog): channel_id = ctx.channel.id call = await models.Call.get(channels__id=channel_id).prefetch_related( - "channels", "call_rss" + "channels", "call_rss", "call_rss__profile" ) other_channel = find(lambda c: c.id != channel_id, call.channels) @@ -607,7 +606,7 @@ class Calls(base.Cog): try: await self.bot.get_partial_messageable(other_channel.id).send( - f"**{call_rs.mask_emoji + " " if call_rs.is_masked else None} {call_rs.display_name}** (`{ctx.author.name}`) wants you to add them as a friend on Discord." + f"**{call_rs.mask_emoji + " " if call_rs.is_masked else ""}{call_rs.display_name}** (`{ctx.author.name}`) wants you to add them as a friend on Discord." ) except errors.DiscordException: