aboutsummaryrefslogtreecommitdiffstats
path: root/edi/edidebug.py
diff options
context:
space:
mode:
Diffstat (limited to 'edi/edidebug.py')
-rwxr-xr-xedi/edidebug.py3
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]