Permalink
Browse files

Fix deprecated warning

Fixes bug 929101

The message attribute of exceptions is deprecated, use unicode() instead

Change-Id: I81ecd96807d6ad2ac2bcf64edf35600c705e53aa
  • Loading branch information...
jerdfelt committed Feb 8, 2012
1 parent 85ae58c commit f0da7946b30d85ca41a940a00df0726970e68c6b
Showing with 1 addition and 1 deletion.
  1. +1 −1 nova/compute/manager.py
View
@@ -2192,7 +2192,7 @@ def add_instance_fault_from_exc(self, context, instance_uuid, fault):
'instance_uuid': instance_uuid,
'code': code,
'message': fault.__class__.__name__,
'details': fault.message,
'details': unicode(fault),
}
self.db.instance_fault_create(context, values)

0 comments on commit f0da794

Please sign in to comment.