mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Do not mix byte str with unicode type
This commit is contained in:
parent
01ba2e94c0
commit
2f5e817007
1 changed files with 2 additions and 2 deletions
|
@ -247,9 +247,9 @@ class Display:
|
|||
|
||||
def error(self, msg, wrap_text=True):
|
||||
if wrap_text:
|
||||
new_msg = "\n[ERROR]: %s" % msg
|
||||
new_msg = u"\n[ERROR]: %s" % msg
|
||||
wrapped = textwrap.wrap(new_msg, self.columns)
|
||||
new_msg = "\n".join(wrapped) + "\n"
|
||||
new_msg = u"\n".join(wrapped) + u"\n"
|
||||
else:
|
||||
new_msg = msg
|
||||
if new_msg not in self._errors:
|
||||
|
|
Loading…
Reference in a new issue