fix(speedtest): hopefully fixed an error

This commit is contained in:
Seaswimmer 2024-05-25 17:37:35 -04:00
parent 7806aa29c5
commit b210fa8bb0
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -38,7 +38,7 @@ class Speedtest(commands.Cog):
async def run_speedtest(self) -> str | Any: async def run_speedtest(self) -> str | Any:
try: try:
process = await asyncio.create_subprocess_exec( process = await asyncio.create_subprocess_exec(
"speedtest", "-f json", "--accept-license", program=["speedtest", "-f", "json", "--accept-license"],
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE stderr=subprocess.PIPE
) )