fix(seautils): fixed empty answer section
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 26s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 38s

This commit is contained in:
Seaswimmer 2024-05-28 19:25:01 -04:00
parent cb6ddabb4d
commit 7f46d6accc
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -157,7 +157,7 @@ class SeaUtils(commands.Cog):
else: else:
embed.add_field(name="Answer Section", value=f"{cf.box(answer_section)}", inline=False) embed.add_field(name="Answer Section", value=f"{cf.box(answer_section)}", inline=False)
if authorities: if not len(authorities) == 0:
authority_section = "\n".join(authorities) authority_section = "\n".join(authorities)
embed.add_field(name="Authority Section", value=f"{cf.box(authority_section)}", inline=False) embed.add_field(name="Authority Section", value=f"{cf.box(authority_section)}", inline=False)
await ctx.send(embed=embed) await ctx.send(embed=embed)