From bab0c9210371e1cfa321b8528217a7f2e156d7a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20Jens=C3=A5s?= Date: Tue, 26 Apr 2022 15:46:56 +0200 Subject: [PATCH] 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 --- tools/get-stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/get-stats.py b/tools/get-stats.py index dc0bd0f9e5..05f088ef8d 100755 --- a/tools/get-stats.py +++ b/tools/get-stats.py @@ -31,7 +31,7 @@ def get_service_stats(service): if not line: continue stat, val = line.split('=') - stats[stat] = int(val) + stats[stat] = tryint(val) return stats