diff --git a/channels/channel.py b/channels/channel.py index c22c940..b65d65a 100644 --- a/channels/channel.py +++ b/channels/channel.py @@ -34,7 +34,7 @@ class Channel(object): Send a message over the channel - messages are always dicts. """ if not isinstance(content, dict): - raise ValueError("You can only send dicts as content on channels.") + raise TypeError("You can only send dicts as content on channels.") self.channel_layer.send(self.name, content) def __str__(self):