dsmr_parser/clients/protocol.py
def handle_telegram(self, telegram):
        """Send off parsed telegram to handling callback."""
        self.log.debug('got telegram: %s', telegram)

        try:
            parsed_telegram = self.telegram_parser.parse(telegram)
        except InvalidChecksumError as e:
            self.log.warning(str(e))
        except ParseError:
            self.log.exception("failed to parse telegram")
        else:
            self.telegram_callback(parsed_telegram)
def handle_telegram(self, telegram):
        self.log.debug('got telegram: %s', telegram)

        try:
            parsed_telegram = self.telegram_parser.parse(telegram)
        except InvalidChecksumError as e:
            self.log.warning(str(e))
        except ParseError:
            self.log.exception("failed to parse telegram")
        else:
            self.telegram_callback(parsed_telegram)
def handle_telegram ( self , telegram ) : self . log . debug ( 'got telegram: %s' , telegram ) try : parsed_telegram = self . telegram_parser . parse ( telegram ) except InvalidChecksumError as e : self . log . warning ( str ( e ) ) except ParseError : self . log . exception ( "failed to parse telegram" ) else : self . telegram_callback ( parsed_telegram )
Send off parsed telegram to handling callback.
Send off parsed telegram to handling callback .