From 8abe53e170a73ae6bc31c71c065635a6e7b2e08c Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Wed, 6 Apr 2016 22:02:41 -0700 Subject: [PATCH] Change type of error --- channels/channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):