Skip to content

Commit 201bcaa

Browse files
tormodvoldenperexg
authored andcommitted
hctltest1.py: Skip read/write if no values in element
Closes: #14 Signed-off-by: Tormod Volden <[email protected]> Signed-off-by: Jaroslav Kysela <[email protected]>
1 parent be26b2a commit 201bcaa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/hctltest1.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ def value(element):
3232
if a.startswith('__'):
3333
continue
3434
print(' %s: %s' % (a, getattr(value, a)))
35+
if info.count == 0:
36+
return
3537
values = value.get_tuple(info.type, info.count)
3638
print(' Values:', values)
3739
value.set_tuple(info.type, values)

0 commit comments

Comments
 (0)