def dispatch_message(self, content): try: if 'oid' in content: o = EOffer.from_data(content) self.register_their_offer(o) elif 'pid' in content: self.dispatch_exchange_proposal(content) except Exception as e: raise
def dispatch_message(self, content): try: if 'oid' in content: o = EOffer.from_data(content) self.register_their_offer(o) elif 'pid' in content: self.dispatch_exchange_proposal(content) except Exception as e: LOGERROR("got exception %s when dispatching a message", e) raise