437 break |
437 break |
438 except Exception as e: |
438 except Exception as e: |
439 Irc.broadcast ('Error while processing %s: %s' % (commit_node, e)) |
439 Irc.broadcast ('Error while processing %s: %s' % (commit_node, e)) |
440 continue |
440 continue |
441 |
441 |
|
442 # Encode messages |
|
443 for messagelist in messages: |
|
444 for i in range (0, len (messagelist)): |
|
445 messagelist[i] = messagelist[i].decode ("utf-8", "ignore").encode("ascii", "ignore") |
|
446 |
442 fullMessageLength = len (''.join (messages[2])) |
447 fullMessageLength = len (''.join (messages[2])) |
443 |
448 |
444 if fullMessageLength > 3000: |
449 if fullMessageLength > 3000: |
445 messageSizeClass = LENGTH_MINIMUM |
450 messageSizeClass = LENGTH_MINIMUM |
446 elif fullMessageLength > 768: |
451 elif fullMessageLength > 768: |