Revert "catch exception if message was not delivered to XMPP"
This reverts commit 0c199a8231
.
This commit is contained in:
parent
d88d13d1e3
commit
42f8c079c3
|
@ -285,7 +285,6 @@ class Session(YowsupApp):
|
||||||
self.logger.info("Message received from %s to %s: %s (at ts=%s)" %
|
self.logger.info("Message received from %s to %s: %s (at ts=%s)" %
|
||||||
(buddy, self.legacyName, messageContent, timestamp))
|
(buddy, self.legacyName, messageContent, timestamp))
|
||||||
|
|
||||||
try:
|
|
||||||
if participant is not None: # Group message or broadcast
|
if participant is not None: # Group message or broadcast
|
||||||
partname = participant.split('@')[0]
|
partname = participant.split('@')[0]
|
||||||
if _from.split('@')[1] == 'broadcast': # Broadcast message
|
if _from.split('@')[1] == 'broadcast': # Broadcast message
|
||||||
|
@ -298,8 +297,6 @@ class Session(YowsupApp):
|
||||||
timestamp, notify)
|
timestamp, notify)
|
||||||
else:
|
else:
|
||||||
self.sendMessageToXMPP(buddy, messageContent, timestamp)
|
self.sendMessageToXMPP(buddy, messageContent, timestamp)
|
||||||
except Exception as ex:
|
|
||||||
self.logger.error("textMessage not delivered to XMPP: %s" % ex)
|
|
||||||
|
|
||||||
# Called by superclass
|
# Called by superclass
|
||||||
def onImage(self, image):
|
def onImage(self, image):
|
||||||
|
|
Loading…
Reference in a new issue