From b413e656469496d2cd2cbde84e1390042bc3f6ae Mon Sep 17 00:00:00 2001 From: pestaa Date: Wed, 4 May 2011 05:21:56 -0700 Subject: [PATCH] Prevent Unicode errors if a meta key contains non-ascii chars. --- hyde/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyde/model.py b/hyde/model.py index 3854eee..f9e166d 100644 --- a/hyde/model.py +++ b/hyde/model.py @@ -44,7 +44,7 @@ class Expando(object): Sets the expando attribute after transforming the value. """ - setattr(self, key, self.transform(value)) + setattr(self, key.encode('utf-8'), self.transform(value)) def transform(self, primitive): """