fix: print_info value is None

TypeError: unsupported format string passed to NoneType.__format__
This commit is contained in:
debugtalk
2019-04-17 21:06:42 +08:00
parent eeb7eade1a
commit 2342bcade8
2 changed files with 14 additions and 0 deletions

View File

@@ -385,6 +385,8 @@ def print_info(info_mapping):
continue
elif isinstance(value, (dict, list)):
value = json.dumps(value)
elif value is None:
value = "None"
if is_py2:
if isinstance(key, unicode):