summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYun Mao <yunmao@gmail.com>2012-05-07 18:54:09 -0400
committerYun Mao <yunmao@gmail.com>2012-05-14 12:18:05 -0400
commitae95868e5e6a0294d3ca3d80bed17da13a52096c (patch)
tree12506f3d1768b1c10d063c235dbd5ada6979af33
parent2c7e0d1e63cae7aaa38095439843c9a2abb0382b (diff)
fixes bug 999206
override the __unicode__() method too for python 2.6 Change-Id: Iec76c49585e29071415d937861e94d14ff22cc04
-rw-r--r--nova/rpc/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/rpc/common.py b/nova/rpc/common.py
index 33aea9bc3..3f818977e 100644
--- a/nova/rpc/common.py
+++ b/nova/rpc/common.py
@@ -205,7 +205,7 @@ def deserialize_remote_exception(conf, data):
ex_type = type(failure)
str_override = lambda self: message
new_ex_type = type(ex_type.__name__ + "_Remote", (ex_type,),
- {'__str__': str_override})
+ {'__str__': str_override, '__unicode__': str_override})
try:
# NOTE(ameade): Dynamically create a new exception type and swap it in
# as the new type for the exception. This only works on user defined