handle unicode in CreatorError and UsageError
authorGui Chen <gui.chen@intel.com>
Thu, 18 Oct 2012 14:02:36 +0000 (22:02 +0800)
committerGui Chen <gui.chen@intel.com>
Thu, 18 Oct 2012 14:02:36 +0000 (22:02 +0800)
commit06c54cde61a9df37ff0182cdafebe5be1034e5c0
treedef5fee5c04c635f2507eba3171915c27c301779
parent709195f2289b1aadb42e55f37fe34732f2504da2
handle unicode in CreatorError and UsageError

when code like 'raise CreatorError(str(e))' and e.msg is unicode,
this will be failed, this patch will fix such issue

Signed-off-by: Gui Chen <gui.chen@intel.com>
mic/utils/errors.py