diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2006-05-05 19:37:56 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2006-05-05 19:37:56 (GMT) |
commit | f86977781e1885ca4e34b265181dfebff65ca347 (patch) | |
tree | 22a5122898fe4639a11d65da8b4f23b1efae4e78 /chat/p2p.py | |
parent | d0613d2a42a062cf4d0b0c9c6ea32bfbb01f278d (diff) |
Add a share button to the browser.
Diffstat (limited to 'chat/p2p.py')
-rw-r--r-- | chat/p2p.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/chat/p2p.py b/chat/p2p.py index 2a91bee..381180b 100644 --- a/chat/p2p.py +++ b/chat/p2p.py @@ -2,7 +2,6 @@ import os import pwd import xmlrpclib import socket -import traceback import presence import BuddyList @@ -15,6 +14,7 @@ class GroupRequestHandler(object): def message(self, message): address = network.get_authinfo() self._group.recv(address[0], message) + return True class Owner: instance = None @@ -93,11 +93,9 @@ class Group: peer = xmlrpclib.ServerProxy(addr) success = True try: - print self._serialize_msg(pipe_id, msg) peer.message(self._serialize_msg(pipe_id, msg)) - except (socket.error, xmlrpclib.Fault, xmlrpclib.ProtocolError), e: - print "Message Send Error:" - traceback.print_exc() + except (socket.error, xmlrpclib.Fault), e: + print str(e) success = False return success |