Skip to content

Commit 8b54ea4

Browse files
committed
Fix #29 fails with ValueError if a key containing ValueString was removed.
1 parent 3e5f447 commit 8b54ea4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rma/rule/ValueString.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def analyze(self, keys, total=0):
9494
if 'DEBUG' in error_string:
9595
use_debug_command = False
9696

97+
used_bytes = used_bytes if len(used_bytes) != 0 else [0]
9798
total_elements = len(used_bytes)
9899
used_user = sum(used_bytes)
99100
free_user = sum(free_bytes)

0 commit comments

Comments
 (0)