summaryrefslogtreecommitdiff
path: root/scripts/update_payload/checker.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/update_payload/checker.py')
-rw-r--r--scripts/update_payload/checker.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/update_payload/checker.py b/scripts/update_payload/checker.py
index 549ffcb8..8a866190 100644
--- a/scripts/update_payload/checker.py
+++ b/scripts/update_payload/checker.py
@@ -67,7 +67,11 @@ def _AddFormat(format_func, value):
Returns:
A string 'x (y)' where x = str(value) and y = format_func(value).
"""
- return '%s (%s)' % (value, format_func(value))
+ ret = str(value)
+ formatted_str = format_func(value)
+ if formatted_str:
+ ret += ' (%s)' % formatted_str
+ return ret
def _AddHumanReadableSize(size):