Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #119 from lendingblock/master
Browse files Browse the repository at this point in the history
0.8.8
  • Loading branch information
lsbardel authored Sep 25, 2018
2 parents 2d5d6bf + 92fdefa commit 063698d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion openapi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Minimal OpenAPI asynchronous server application
"""

__version__ = '0.8.7'
__version__ = '0.8.8'
8 changes: 7 additions & 1 deletion openapi/ws/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ def __init__(
def registered(self):
return tuple(self.channels)

def __repr__(self) -> str:
return f'Channels [{self.broker}]'

def __str__(self) -> str:
return self.__repr__()

def __len__(self) -> int:
return len(self.channels)

Expand Down Expand Up @@ -167,7 +173,7 @@ async def _connect(self, next_time):
await self._subscribe(self.status_channel.name)
self.status = StatusType.connected
logger.warning(
'%s ready and listening for events on %s - all good',
'%s ready and listening for events on channel "%s" - all good',
self,
self.status_channel.name
)
Expand Down
2 changes: 1 addition & 1 deletion openapi/ws/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async def on_message(self, msg):
raise ValidationErrors(
dict(method=f'{rpc.method} method not available')
)
response = await method(rpc.payload)
response = await method(rpc.payload or {})
await self.write(dict(
id=rpc.id,
method=rpc.method,
Expand Down

0 comments on commit 063698d

Please sign in to comment.