From a0b47763748ac65cd5b515a98f2a58b6afac5428 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Mon, 25 Apr 2016 18:19:08 +0300 Subject: [PATCH] gpg: fixup exception message --- trezor_agent/gpg/decode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trezor_agent/gpg/decode.py b/trezor_agent/gpg/decode.py index 035285d..2d38c22 100644 --- a/trezor_agent/gpg/decode.py +++ b/trezor_agent/gpg/decode.py @@ -195,7 +195,7 @@ class Parser(object): if packet_type: p = packet_type(util.Reader(io.BytesIO(packet_data))) else: - raise ValueError('Unknown packet type: {}'.format(packet_type)) + raise ValueError('Unknown packet type: {}'.format(tag)) p['tag'] = tag log.debug('packet "%s": %s', p['type'], p) return p