fix travis error - python 2.6 or whatevs wants positions spelled out for .format

main
Toms Bauģis 9 years ago
parent 682d4adb40
commit ade154575e

@ -603,8 +603,8 @@ class Worker(object):
if rv: if rv:
log_result = "{0!r}".format(text_type(rv)) log_result = "{0!r}".format(text_type(rv))
if len(log_result) > 2000: if len(log_result) > 2000:
log_result = "{}..\n..output truncated".format(log_result[:2000]) log_result = "{0}..\n..output truncated".format(log_result[:2000])
self.log.debug('Result: {}'.format(yellow(log_result))) self.log.debug('Result: {0}'.format(yellow(log_result)))
if result_ttl == 0: if result_ttl == 0:
self.log.info('Result discarded immediately') self.log.info('Result discarded immediately')

Loading…
Cancel
Save