Merge "fixes bug 999206"
This commit is contained in:
@@ -235,7 +235,7 @@ def deserialize_remote_exception(conf, data):
|
|||||||
ex_type = type(failure)
|
ex_type = type(failure)
|
||||||
str_override = lambda self: message
|
str_override = lambda self: message
|
||||||
new_ex_type = type(ex_type.__name__ + "_Remote", (ex_type,),
|
new_ex_type = type(ex_type.__name__ + "_Remote", (ex_type,),
|
||||||
{'__str__': str_override})
|
{'__str__': str_override, '__unicode__': str_override})
|
||||||
try:
|
try:
|
||||||
# NOTE(ameade): Dynamically create a new exception type and swap it in
|
# 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
|
# as the new type for the exception. This only works on user defined
|
||||||
|
Reference in New Issue
Block a user