fix(seautils): convert port number to a string
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 25s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 36s

This commit is contained in:
Seaswimmer 2024-05-28 18:44:01 -04:00
parent 29bb64b35c
commit 54491cb9c9
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -93,7 +93,7 @@ class SeaUtils(commands.Cog):
command_opts: list[str | int] = ['dig']
if server:
command_opts.extend(['@', server])
command_opts.extend([name, type, '-p', port, '+yaml'])
command_opts.extend([name, type, '-p', str(port), '+yaml'])
try:
process: Process = await asyncio.create_subprocess_exec(*command_opts, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE)