Skip to content

Commit bab0c92

Browse files
committed
Use tryint() for stats value
In some cases the value is [not set], in this case the conversion to integer does not work. Closes-Bug: #1970431 Change-Id: I74df7d8bc9f5cbe0709a6471cf7639caea0b58e8
1 parent 3b0c035 commit bab0c92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/get-stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def get_service_stats(service):
3131
if not line:
3232
continue
3333
stat, val = line.split('=')
34-
stats[stat] = int(val)
34+
stats[stat] = tryint(val)
3535

3636
return stats
3737

0 commit comments

Comments
 (0)