summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-05-13 21:00:39 +0200
committermathieui <mathieui@mathieui.net>2011-05-13 21:00:39 +0200
commitbf5599d4d01e12659e3d01fc29587d503e66beb0 (patch)
tree72f2001703efc2dfc3909889c21f532185cb05f1
parentec1aef198bc333057dba8b751f7845218cf80101 (diff)
downloadpoezio-bf5599d4d01e12659e3d01fc29587d503e66beb0.tar.gz
poezio-bf5599d4d01e12659e3d01fc29587d503e66beb0.tar.bz2
poezio-bf5599d4d01e12659e3d01fc29587d503e66beb0.tar.xz
poezio-bf5599d4d01e12659e3d01fc29587d503e66beb0.zip
fixes #1995 (hopefully google will fix their server, one day…)
-rw-r--r--src/core.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py
index 61d32ae8..7e0fb747 100644
--- a/src/core.py
+++ b/src/core.py
@@ -1363,7 +1363,12 @@ class Core(object):
if isinstance(tab, tabs.MucTab):
muc.leave_groupchat(self.xmpp, tab.get_room().name, tab.get_room().own_nick, msg)
self.save_config()
- self.xmpp.disconnect(False)
+ # Ugly fix thanks to gmail servers
+ try:
+ sys.stderr = None
+ self.xmpp.disconnect(False)
+ except:
+ pass
def command_quit(self, arg):
"""