Commit f418d200 authored by Petr Špaček's avatar Petr Špaček

Deckard: catch implementation errors in RAW messages

Previously invalid use of raw_cmp() would generate an exception which
would be incorrectly caught up in the call tree.
parent cd61f424
......@@ -234,8 +234,7 @@ class Entry:
raise Exception("line %d, \"%s\": %s" % (self.lineno, code, errstr))
def cmp_raw(self, raw_value):
if self.is_raw_data_entry is False:
raise Exception("entry.cmp_raw() misuse")
assert self.is_raw_data_entry
expected = None
if self.raw_data is not None:
expected = binascii.hexlify(self.raw_data)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment