summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-06-26 22:49:18 +0200
committermathieui <mathieui@mathieui.net>2013-06-26 22:49:18 +0200
commitec49a7b05d59a6a207d552c8d4110c00714646d9 (patch)
tree52adc23ed2b627fe27354656b7698e204d09bb51
parent1ae7ff10d3a57d40449c0457843f92cdc32c7b19 (diff)
downloadpoezio-ec49a7b05d59a6a207d552c8d4110c00714646d9.tar.gz
poezio-ec49a7b05d59a6a207d552c8d4110c00714646d9.tar.bz2
poezio-ec49a7b05d59a6a207d552c8d4110c00714646d9.tar.xz
poezio-ec49a7b05d59a6a207d552c8d4110c00714646d9.zip
Ignore errors on PEP publishing (fix #2322)
(since we can’t do anything about them anyway)
-rw-r--r--src/core.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core.py b/src/core.py
index c574370c..d1b0d7e5 100644
--- a/src/core.py
+++ b/src/core.py
@@ -2297,7 +2297,7 @@ class Core(object):
text = args[1]
else:
text = None
- self.xmpp.plugin['xep_0107'].publish_mood(mood, text, block=False)
+ self.xmpp.plugin['xep_0107'].publish_mood(mood, text, callback=dumb_callback, block=False)
def completion_mood(self, the_input):
"""Completion for /mood"""
@@ -2326,7 +2326,7 @@ class Core(object):
text = args[2]
if specific and specific not in pep.ACTIVITIES[general]:
return self.information('%s is not a correct value for an activity' % specific, 'Error')
- self.xmpp.plugin['xep_0108'].publish_activity(general, specific, text, block=False)
+ self.xmpp.plugin['xep_0108'].publish_activity(general, specific, text, callback=dumb_callback, block=False)
def command_gaming(self, arg):
"""
@@ -2340,7 +2340,7 @@ class Core(object):
address = args[1]
else:
address = None
- return self.xmpp.plugin['xep_0196'].publish_gaming(name=name, server_address=address, block=False)
+ return self.xmpp.plugin['xep_0196'].publish_gaming(name=name, server_address=address, callback=dumb_callback, block=False)
def completion_activity(self, the_input):
"""Completion for /activity"""
@@ -3468,7 +3468,7 @@ class Core(object):
show=self.status.show)
if config.get('enable_user_nick', 'true') != 'false':
- self.xmpp.plugin['xep_0172'].publish_nick(nick=self.own_nick)
+ self.xmpp.plugin['xep_0172'].publish_nick(nick=self.own_nick, callback=dumb_callback, block=False)
self.xmpp.plugin['xep_0115'].update_caps()
### Other handlers ###
@@ -3675,4 +3675,6 @@ def replace_key_with_bound(key):
bind = key
return bind
+def dumb_callback(*args, **kwargs):
+ pass