use %r instead of %s to prevent encoding errors
This commit is contained in:
parent
bb22fe90d3
commit
47df1413ae
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ __all__ = ['BackendsCall', 'CallErrors', 'IResultsCondition', 'ResultsConditionE
|
|||
class CallErrors(Exception):
|
||||
def __init__(self, errors):
|
||||
msg = 'Errors during backend calls:\n' + \
|
||||
'\n'.join(['Module(%s): %s\n%s\n' % (backend, error, backtrace)
|
||||
'\n'.join(['Module(%r): %r\n%r\n' % (backend, error, backtrace)
|
||||
for backend, error, backtrace in errors])
|
||||
|
||||
Exception.__init__(self, msg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue