Skip to content

Commit

Permalink
Update bot: test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dipu-bd committed Sep 15, 2019
1 parent d262524 commit 18cd404
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/bots/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from ..utils.kindlegen_download import download_kindlegen, retrieve_kindlegen
from ..utils.make_github_issue import find_issues, post_issue

# For colorama
# For colorama in
sys.stdout = io.TextIOWrapper(sys.stdout.detach(),
encoding=sys.stdout.encoding,
errors='ignore',
Expand Down Expand Up @@ -121,8 +121,11 @@ def post_on_github(self, message):

def error_message(self):
output = '=' * 80 + '\n'
output += 'Failed sources (%d):\n' % len(self.allerrors.keys())
output += '\n'.join(sorted(self.allerrors.keys())) + '\n'
output += 'Failed sources (%d):\n' % (len(self.allerrors.keys()))
for source in sorted(self.allerrors.keys()):
output += '- ' + source
output += ' (allowed)\n' if source in self.allowed_failures else '\n'
# end for
output += '-' * 80 + '\n\n'

num = 0
Expand Down

0 comments on commit 18cd404

Please sign in to comment.