[gnome-continuous] bot: convert irc_room from unicode



commit 4493f77f2f3563dfcdcb657aece3a2c179790ac4
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Tue Dec 10 15:04:24 2013 +0100

    bot: convert irc_room from unicode
    
    Channel name must not be unicode to avoid crashes like:
    http://pastebin.mozilla.org/3748760
    
    https://bugzilla.gnome.org/show_bug.cgi?id=719780

 extras/ircbot/bot.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/extras/ircbot/bot.py b/extras/ircbot/bot.py
index 9fa40f5..32fead9 100644
--- a/extras/ircbot/bot.py
+++ b/extras/ircbot/bot.py
@@ -181,7 +181,7 @@ class BuildGnomeOrg(irc.IRCClient):
 
         component_descriptions = [x for x in snapshot['components'] if 'name' in x.keys() and x['name'] in 
component_names]
 
-        return [x['irc_room'] for x in component_descriptions if 'irc_room' in x.keys()]
+        return [x['irc_room'].encode("utf-8") for x in component_descriptions if 'irc_room' in x.keys()]
 
     def _query_new_task(self, taskname, announce_always=False):
         querystate = self._update_task_state(taskname)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]