Add message type to exception

pull/8/head
Nico 2015-11-01 14:22:31 +01:00
rodzic 3d38ce4bce
commit 6daa752800
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -89,7 +89,7 @@ class MQTTFixedHeader:
else:
multiplier *= 128
if multiplier > 128 * 128 * 128:
raise MQTTException("Invalid remaining length bytes:%s" % bytes_to_hex_str(buffer))
raise MQTTException("Invalid remaining length bytes:%s, packet_type=%d" % (bytes_to_hex_str(buffer), msg_type))
return value
try: