OpenConnection: add err attr, remove ok attr

This commit is contained in:
Maximilian Hils 2017-06-27 18:32:40 +02:00
parent a415edbb7c
commit 14a4254285
2 changed files with 3 additions and 3 deletions

View File

@ -92,8 +92,8 @@ class OpenConnectionReply(CommandReply):
command: commands.OpenConnection
reply: str
def __init__(self, command: commands.OpenConnection, ok: str):
super().__init__(command, ok)
def __init__(self, command: commands.OpenConnection, err: typing.Optional[str]):
super().__init__(command, err)
class HookReply(CommandReply):

View File

@ -82,7 +82,7 @@ class ConnectionHandler:
)
self.transports[command.connection] = StreamIO(reader, writer)
command.connection.connected = True
await self.server_event(events.OpenConnectionReply(command, "success"))
await self.server_event(events.OpenConnectionReply(command, None))
await self.handle_connection(command.connection)
async def server_event(self, event: events.Event):