Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix IndexError due to unintentionally moving call out of try block

  • Loading branch information...
commit 438a0785fb47fc1ba9fe9421ed47cc9defb15922 1 parent 69bdad2
@jaraco authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 logbot.py
View
5 logbot.py
@@ -246,8 +246,9 @@ def format_event(self, name, event, params):
try: msg = msg.replace("%channel%", event.target())
except: pass
msg = msg.replace("%color%", self.color(nm_to_n(event.source())))
- user_message = cgi.escape(event.arguments()[0])
- try: msg = msg.replace("%message%", html_color(user_message))
+ try:
+ user_message = cgi.escape(event.arguments()[0])
+ msg = msg.replace("%message%", html_color(user_message))
except: pass
return msg
Please sign in to comment.
Something went wrong with that request. Please try again.