mirror of
https://github.com/onyx-and-iris/q3rcon-cli.git
synced 2026-04-16 22:13:40 +00:00
updates to the Console classes:
- added ErrConsole - import console as namespace throughout the package - swap out the static methods for instance methods. Wrap the entry point in try/except. Note, catching IncorrectPasswordError is currently not working. See https://github.com/Iapetus-11/aio-q3-rcon/issues/4
This commit is contained in:
@@ -2,7 +2,7 @@ from aioq3rcon import Client
|
||||
from clypi import Command, arg
|
||||
from typing_extensions import override
|
||||
|
||||
from q3rcon_cli.console import Console
|
||||
from q3rcon_cli import console
|
||||
|
||||
|
||||
class Plugins(Command):
|
||||
@@ -16,4 +16,4 @@ class Plugins(Command):
|
||||
async def run(self):
|
||||
async with Client(self.host, self.port, self.password) as client:
|
||||
if response := await client.send_command('plugins'):
|
||||
Console.print_response(response)
|
||||
console.out.print_response(response)
|
||||
|
||||
Reference in New Issue
Block a user