Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update function prototype error message
Browse files Browse the repository at this point in the history
jophy-ye committed Oct 11, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 09aaf6d commit 35072e1
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions channels/layers.py
Original file line number Diff line number Diff line change
@@ -187,21 +187,19 @@ def non_local_name(self, name):
return name

async def send(self, channel, message):
raise NotImplementedError("send() should be implemented in channels")
raise NotImplementedError("send() should be implemented in a channel layer")

async def receive(self, channel):
raise NotImplementedError("receive() should be implemented in channels")
raise NotImplementedError("receive() should be implemented in a channel layer")

async def new_channel(self):
raise NotImplementedError("new_channel() should be implemented in channels")

# flush extension
raise NotImplementedError(
"new_channel() should be implemented in a channel layer"
)

async def flush(self):
raise NotImplementedError("flush() not implemented (flush extension)")

# groups extension

async def group_add(self, group, channel):
raise NotImplementedError("group_add() not implemented (groups extension)")

0 comments on commit 35072e1

Please sign in to comment.