Archived
1
0
Fork 0

Rename module

This commit is contained in:
多羅狼 2023-06-26 21:28:28 +08:00 committed by GitHub
parent 368844af59
commit c6e874a322
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
from modules.whois.ip import check_ip from modules.ip import check_ip
from .utils import to_json_func, AkariTool from .utils import to_json_func, AkariTool

View file

@ -19,7 +19,7 @@ async def _(msg: Bot.MessageSession, domain: str):
async def get_whois(msg, domain): async def get_whois(msg, domain):
try: try:
info = whois.whois(domain) info = whois.whois(domain)
except whois.parser.PywhoisError as e: except whois.parser.PywhoisError:
await msg.finish("whois.message.error.get_failed") await msg.finish("whois.message.error.get_failed")
name_servers = [ns for ns in info['name_servers'] if ns.islower()] name_servers = [ns for ns in info['name_servers'] if ns.islower()]