bot: Fix record counting
All checks were successful
Build Docker / Build Docker (push) Successful in 15s
All checks were successful
Build Docker / Build Docker (push) Successful in 15s
This commit is contained in:
parent
b8d2b4c006
commit
b7819f6f98
2
bot.py
2
bot.py
@ -154,7 +154,7 @@ async def ssl(ctx, domain: str):
|
|||||||
message = message + "- " +str(record) + "\n"
|
message = message + "- " +str(record) + "\n"
|
||||||
|
|
||||||
|
|
||||||
if records.count() < 1:
|
if not records:
|
||||||
await ctx.response.send_message(f"No A record found for {domain}")
|
await ctx.response.send_message(f"No A record found for {domain}")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user