diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-03-21 20:08:22 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-03-21 20:08:22 +0100 |
commit | 0b21a0b19c285da1905263c78dfde4378846ae9f (patch) | |
tree | 5561bc285ada8219fa1fe8967de6d14523aab9e0 /edi/edidebug.py | |
parent | 78a5d1945922e9d4b9932c9d39d61a9f192bcd56 (diff) | |
download | mmbtools-aux-0b21a0b19c285da1905263c78dfde4378846ae9f.tar.gz mmbtools-aux-0b21a0b19c285da1905263c78dfde4378846ae9f.tar.bz2 mmbtools-aux-0b21a0b19c285da1905263c78dfde4378846ae9f.zip |
Big cleanup
Diffstat (limited to 'edi/edidebug.py')
-rwxr-xr-x | edi/edidebug.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/edi/edidebug.py b/edi/edidebug.py index 64d605d..c41d9a6 100755 --- a/edi/edidebug.py +++ b/edi/edidebug.py @@ -482,7 +482,8 @@ def tagitems(tagpacket): name, length = struct.unpack(tag_item_head_struct, tagpacket[i:i+8]) # length is in bits, because it's more annoying this way - assert(length % 8 == 0) + if length % 8 != 0: + print("ASSERTION ERROR: length of tagpacket is not multiple of 8: {}".format(length)) length /= 8 tag_value = tagpacket[i+8:i+8+length] |