1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

add TypeError to except block. add /usr/bin/time tests

This commit is contained in:
Kelly Brazil
2021-04-01 12:52:10 -07:00
parent fc4082a03f
commit c326c8dc83
18 changed files with 194 additions and 1 deletions

View File

@ -179,7 +179,7 @@ def process(proc_data):
if key in proc_data:
try:
proc_data[key] = int(proc_data[key])
except (ValueError):
except (ValueError, TypeError):
proc_data[key] = None
float_list = ['real_time', 'user_time', 'system_time']