From d027c57dbfa5cca2230f80d00d23dad92a0a1ab3 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Thu, 28 Jul 2016 10:49:37 +0100 Subject: [PATCH] Fix typo in attrs error message --- channels/generic/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/generic/base.py b/channels/generic/base.py index be21ee9..480f9cf 100644 --- a/channels/generic/base.py +++ b/channels/generic/base.py @@ -46,7 +46,7 @@ class BaseConsumer(object): """ _cls = cls if attrs: - assert isinstance(attrs, dict), 'Attri' + assert isinstance(attrs, dict), 'attrs must be a dict' _cls = type(cls.__name__, (cls,), attrs) return route_class(_cls, **kwargs)