From 9f05ce3e2b63e69fa865f157e4334bb1d731d76a Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 18 Jan 2016 21:55:24 -0500 Subject: [PATCH] be consistent about conversion to_str --- lib/ansible/errors/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/errors/__init__.py b/lib/ansible/errors/__init__.py index 2185a83e4c0..ffe6c9013db 100644 --- a/lib/ansible/errors/__init__.py +++ b/lib/ansible/errors/__init__.py @@ -56,7 +56,7 @@ class AnsibleError(Exception): if extended_error: self.message = 'ERROR! %s\n\n%s' % (to_str(message), to_str(extended_error)) else: - self.message = 'ERROR! %s' % message + self.message = 'ERROR! %s' % to_str(message) def __str__(self): return self.message